greet/.forgejo/workflows/workflow.yaml
Dan Anglin 45a531d1c1
All checks were successful
/ test (pull_request) Successful in 20s
/ lint (pull_request) Successful in 24s
ci: update forgejo actions workflow
- update actions/checkout to v4
- update actions/setup-go to v5
2023-12-14 09:28:24 +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@v4
- name: Setup Go
uses: https://code.forgejo.org/actions/setup-go@v5
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@v4
- name: Setup Go
uses: https://code.forgejo.org/actions/setup-go@v5
with:
go-version: '1.21'
- name: Lint
uses: https://github.com/golangci/golangci-lint-action@v3
with:
version: v1.54