refactor: remove old CI workflows and consolidate into a new test workflow
All checks were successful
Release / Build versioned release (push) Successful in 14s
All checks were successful
Release / Build versioned release (push) Successful in 14s
This commit is contained in:
23
.gitea/workflows/test-pr.yaml
Normal file
23
.gitea/workflows/test-pr.yaml
Normal file
@@ -0,0 +1,23 @@
|
||||
name: CI
|
||||
on:
|
||||
- pull_request
|
||||
|
||||
jobs:
|
||||
check-and-test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version-file: 'go.mod'
|
||||
- name: tidy
|
||||
run: go mod tidy
|
||||
- name: lint
|
||||
uses: golangci/golangci-lint-action@v3
|
||||
with:
|
||||
args: -D errcheck
|
||||
version: latest
|
||||
- name: build
|
||||
run: go build ./...
|
||||
- name: test
|
||||
run: go test -race -v -shuffle=on ./...
|
||||
Reference in New Issue
Block a user