Skip to content

🤖 go generate ./... #670

🤖 go generate ./...

🤖 go generate ./... #670

Workflow file for this run

name: Test
on:
workflow_dispatch:
pull_request:
branches:
- main
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref_name }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
permissions:
contents: read
env:
GOEXPERIMENT: jsonv2
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
with:
go-version-file: 'go.mod'
- run: go test -count=1 -race -shuffle=on -coverprofile=coverage.out -covermode=atomic ./...
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: coverage
path: coverage.out
if-no-files-found: error
e2e:
needs: test
uses: ./.github/workflows/test-e2e.yml
with:
url: '' # Leave blank to boot a local server for testing
codecov:
needs: test
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: coverage
- uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
with:
use_oidc: true
fail_ci_if_error: true
disable_search: true
files: coverage.out
dispatch:
if: github.event_name == 'push' && github.ref_name == 'main'
needs:
- test
- e2e
permissions:
actions: write
runs-on: ubuntu-24.04
steps:
- name: Dispatch Publish Workflow
run: |
gh workflow run publish.yml \
--repo "${REPO}" \
--ref "${REF}"
env:
REPO: ${{ github.repository }}
REF: ${{ github.ref_name }}
GH_TOKEN: ${{ github.token }}