Skip to content

Cloudfront Distribution and SES template improvements (#973) #1633

Cloudfront Distribution and SES template improvements (#973)

Cloudfront Distribution and SES template improvements (#973) #1633

Workflow file for this run

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.21.5'
- 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