Skip to content

Commit

Permalink
ci: rework Github Actions workflow
Browse files Browse the repository at this point in the history
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
  • Loading branch information
virtualtam committed Nov 2, 2023
1 parent 885d91a commit eab6fbf
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 31 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/build-lint-test.yaml

This file was deleted.

56 changes: 56 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
---
name: "CI"

on:
push:
branches:
- main
tags:
- v*
pull_request: {}

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.21.x

- name: Checkout
uses: actions/checkout@v4

- name: Build
run: make build

lint:
runs-on: ubuntu-latest
steps:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.21.x
cache: false

- name: Checkout
uses: actions/checkout@v4

- name: Lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.55

test:
runs-on: ubuntu-latest
steps:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.21.x

- name: Checkout
uses: actions/checkout@v4

- name: Test
run: make race

0 comments on commit eab6fbf

Please sign in to comment.