act/.gitea/workflows/test.yml
Jason Song a28ebf0a48
All checks were successful
checks / check and test (push) Successful in 1m13s
Improve workflows (#98)
Starting from setup-go v4, it will cache build dependencies by default, see https://github.com/actions/setup-go#caching-dependency-files-and-build-outputs.

Also bump some versions.

Reviewed-on: #98
2024-03-25 15:54:51 +08:00

22 lines
488 B
YAML

name: checks
on:
- push
- pull_request
jobs:
lint:
name: check and test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: vet checks
run: go vet -v ./...
- name: build
run: go build -v ./...
- name: test
run: | # Test only the new packages in this fork. Add more packages as needed.
go test -v ./pkg/jobparser