* use go 1.18 in CI * require go 1.18 * use latest linter * rename ci check * improve regex issues identified by codeql
52 lines
1.3 KiB
YAML
52 lines
1.3 KiB
YAML
|
|
name: Test
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- v*
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: 'read'
|
|
id-token: 'write'
|
|
steps:
|
|
- name: Install Go
|
|
uses: actions/setup-go@v3
|
|
with:
|
|
go-version: '1.18'
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
- id: 'auth'
|
|
uses: 'google-github-actions/auth@v0'
|
|
with:
|
|
workload_identity_provider: 'projects/811013774421/locations/global/workloadIdentityPools/github-pool/providers/github-provider'
|
|
service_account: '[email protected]'
|
|
- name: Test
|
|
run: make test
|
|
test-detectors:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: 'read'
|
|
id-token: 'write'
|
|
steps:
|
|
- name: Install Go
|
|
uses: actions/setup-go@v3
|
|
with:
|
|
go-version: '1.18'
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
- id: 'auth'
|
|
uses: 'google-github-actions/auth@v0'
|
|
with:
|
|
workload_identity_provider: 'projects/811013774421/locations/global/workloadIdentityPools/github-pool/providers/github-provider'
|
|
service_account: '[email protected]'
|
|
- name: Test
|
|
run: make test-detectors
|
|
continue-on-error: true
|
|
|