| 1 |
name: test |
| 2 |
on: |
| 3 |
pull_request: |
| 4 |
push: |
| 5 |
branches: |
| 6 |
- main |
| 7 |
|
| 8 |
jobs: |
| 9 |
test: |
| 10 |
runs-on: docker |
| 11 |
container: |
| 12 |
image: 'data.forgejo.org/oci/node:24-trixie' |
| 13 |
steps: |
| 14 |
- uses: https://code.forgejo.org/actions/checkout@v6 |
| 15 |
- uses: https://code.forgejo.org/actions/setup-go@v6 |
| 16 |
with: |
| 17 |
go-version-file: "go.mod" |
| 18 |
- name: golangci-lint |
| 19 |
uses: https://data.forgejo.org/golangci/golangci-lint-action@ba0d7d2ec06a0ea1cb5fa41b2e4a3ab91d21278a |
| 20 |
with: |
| 21 |
version: v2.12.2 |
| 22 |
- name: test |
| 23 |
run: go test -v ./... |