fix failure evaluation #23
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: gate tests | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
permissions: | |
contents: read | |
jobs: | |
test-skip-kind: | |
strategy: | |
matrix: | |
go: ['1.19', '1.20', '1.21'] | |
os: [macos-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: harden runner | |
uses: step-security/harden-runner@55d479fb1c5bcad5a4f9099a5d9f37c8857b2845 # v2.4.1 | |
with: | |
egress-policy: block | |
disable-sudo: true | |
allowed-endpoints: > | |
github.com:443 | |
api.github.com:443 | |
proxy.github.com:443 | |
raw.githubusercontent.com:443 | |
objects.githubusercontent.com:443 | |
proxy.golang.org:443 | |
- name: checkout code | |
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 | |
- name: setup go | |
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: run non-Kind tests | |
env: | |
SKIP_KIND: 1 | |
run: go test -v ./... | |
test-all: | |
strategy: | |
matrix: | |
go: ['1.19', '1.20', '1.21'] | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: harden runner | |
uses: step-security/harden-runner@55d479fb1c5bcad5a4f9099a5d9f37c8857b2845 # v2.4.1 | |
with: | |
egress-policy: audit | |
disable-sudo: false | |
allowed-endpoints: > | |
github.com:443 | |
api.github.com:443 | |
proxy.github.com:443 | |
raw.githubusercontent.com:443 | |
objects.githubusercontent.com:443 | |
proxy.golang.org:443 | |
- name: checkout code | |
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 | |
- name: setup go | |
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: create KinD cluster | |
uses: helm/kind-action@dda0770415bac9fc20092cacbc54aa298604d140 # v1.8.0 | |
with: | |
cluster_name: kind | |
- name: run all tests | |
run: go test -v ./... |