greet/.forgejo/workflows/workflow.yaml
Dan Anglin 03971ef9a9
All checks were successful
/ test (pull_request) Successful in 26s
/ lint (pull_request) Successful in 23s
ci: run workflow when PR is synchronised
2023-08-28 14:49:02 +01: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@v3
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@v3
with:
go-version: '1.21'
- name: Lint
uses: https://github.com/golangci/golangci-lint-action@v3
with:
version: v1.54