mirror of
https://github.com/foomo/contentserver.git
synced 2025-10-16 12:25:44 +00:00
31 lines
518 B
YAML
31 lines
518 B
YAML
name: checks
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
merge_group:
|
|
branches: [ main ]
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
GOFLAGS: -mod=readonly
|
|
GOPROXY: https://proxy.golang.org
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
check-latest: true
|
|
go-version-file: 'go.mod'
|
|
|
|
- uses: golangci/golangci-lint-action@v4
|
|
|
|
- name: Run tests
|
|
run: go test -v ./...
|