Skip to content

Merge pull request #7 from fredbi/chore/fix-regen-tool #18

Merge pull request #7 from fredbi/chore/fix-regen-tool

Merge pull request #7 from fredbi/chore/fix-regen-tool #18

Workflow file for this run

name: Test
permissions:
contents: read
on:
pull_request:
push:
branches:
- master
jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version: stable
check-latest: true
cache: true
- name: golangci-lint
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
with:
args: --verbose
only-new-issues: true
skip-cache: true
version: latest
build:
name: build test
needs:
- lint
strategy:
matrix:
go:
- "oldstable"
- "stable"
os:
- ubuntu-latest
- macos-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version: ${{ matrix.go }}
check-latest: true
cache: true
- name: Build all packages
run: |
go build ./...
# empty tests for now, yet stronger check than just go build
go test ./...
test-complete:
# description: |
# Rendez-vous job: single required status check for branch protection,
# instead of requiring every matrix combination individually.
name: tests completed
needs: [lint, build]
runs-on: ubuntu-latest
steps:
-
name: Tests completed
run: |
echo "::notice title=Success::All tests passed"