allow imported resources to be path expanded and more state reading #1653
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
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: ['*'] | |
concurrency: | |
cancel-in-progress: true | |
group: unit-tests-${{ github.ref }} | |
name: unit tests | |
permissions: | |
contents: write | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: '1.22.2' | |
- uses: actions/checkout@v3 | |
- uses: actions/cache@v2 | |
with: | |
path: | | |
~/go/pkg/mod | |
~/.cache/go-build | |
~/Library/Caches/go-build | |
~\AppData\Local\go-build | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- name: Run test | |
run: | | |
touch pkg/auth/auth0_client_secret.key | |
go test -race -v -coverprofile=c.out ./... | |
- name: Update coverage report | |
if: github.ref_name == 'main' | |
uses: ncruces/go-coverage-report@v0 | |
with: | |
coverage-file: c.out | |
chart: true | |
reuse-go: true |