greet/.forgejo/workflows/workflow.yaml
Dan Anglin 6130caeb18
All checks were successful
/ test (pull_request) Successful in 27s
/ lint (pull_request) Successful in 26s
ci: update actions/setup-go to v4
2023-12-03 00:42:16 +00:00

39 lines
853 B
YAML

---
on:
pull_request:
types:
- opened
- reopened
- synchronize
jobs:
test:
runs-on: docker
env:
GO_TEST_VERBOSE: "1"
GO_TEST_COVER: "1"
steps:
- name: Checkout Repository
uses: https://code.forgejo.org/actions/checkout@v3
- name: Setup Go
uses: https://code.forgejo.org/actions/setup-go@v4
with:
go-version: '1.21'
- name: Test
run: |
cd internal/build
go run magefiles/main.go -v test
lint:
runs-on: docker
steps:
- name: Checkout Repository
uses: https://code.forgejo.org/actions/checkout@v3
- name: Setup Go
uses: https://code.forgejo.org/actions/setup-go@v4
with:
go-version: '1.21'
- name: Lint
uses: https://github.com/golangci/golangci-lint-action@v3
with:
version: v1.54