| 1 |
# auto-generated by scripts/builds. DO NOT EDIT. |
| 2 |
name: golden |
| 3 |
|
| 4 |
on: |
| 5 |
push: |
| 6 |
branches: |
| 7 |
- main |
| 8 |
pull_request: |
| 9 |
paths: |
| 10 |
- exp/golden/** |
| 11 |
- .github/workflows/golden.yml |
| 12 |
|
| 13 |
jobs: |
| 14 |
build: |
| 15 |
strategy: |
| 16 |
matrix: |
| 17 |
os: [ubuntu-latest, macos-latest, windows-latest] |
| 18 |
runs-on: ${{ matrix.os }} |
| 19 |
defaults: |
| 20 |
run: |
| 21 |
working-directory: ./exp/golden |
| 22 |
steps: |
| 23 |
- uses: actions/checkout@v5 |
| 24 |
- uses: actions/setup-go@v6 |
| 25 |
with: |
| 26 |
go-version-file: ./exp/golden/go.mod |
| 27 |
cache: true |
| 28 |
cache-dependency-path: ./exp/golden/go.sum |
| 29 |
- run: go build -v ./... |
| 30 |
- run: go test -race -v ./... |
| 31 |
|
| 32 |
dependabot: |
| 33 |
needs: [build] |
| 34 |
runs-on: ubuntu-latest |
| 35 |
permissions: |
| 36 |
pull-requests: write |
| 37 |
contents: write |
| 38 |
if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request'}} |
| 39 |
steps: |
| 40 |
- id: metadata |
| 41 |
uses: dependabot/fetch-metadata@v2 |
| 42 |
with: |
| 43 |
github-token: "${{ secrets.GITHUB_TOKEN }}" |
| 44 |
- run: | |
| 45 |
gh pr review --approve "$PR_URL" |
| 46 |
gh pr merge --squash --auto "$PR_URL" |
| 47 |
env: |
| 48 |
PR_URL: ${{github.event.pull_request.html_url}} |
| 49 |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |
| 50 |
|
| 51 |
lint: |
| 52 |
uses: charmbracelet/meta/.github/workflows/lint.yml@main |
| 53 |
with: |
| 54 |
directory: exp/golden |
| 55 |
|
| 56 |
coverage: |
| 57 |
strategy: |
| 58 |
matrix: |
| 59 |
go-version: [^1] |
| 60 |
os: [ubuntu-latest, windows-latest, macos-latest] |
| 61 |
defaults: |
| 62 |
run: |
| 63 |
working-directory: ./exp/golden |
| 64 |
runs-on: ${{ matrix.os }} |
| 65 |
env: |
| 66 |
GO111MODULE: "on" |
| 67 |
steps: |
| 68 |
- name: Install Go |
| 69 |
uses: actions/setup-go@v6 |
| 70 |
with: |
| 71 |
go-version: ${{ matrix.go-version }} |
| 72 |
|
| 73 |
- name: Checkout code |
| 74 |
uses: actions/checkout@v5 |
| 75 |
|
| 76 |
- name: Coverage |
| 77 |
run: | |
| 78 |
go test -race -covermode=atomic -coverprofile='coverage.txt' ./... |
| 79 |
|
| 80 |
- uses: codecov/codecov-action@v5 |
| 81 |
with: |
| 82 |
file: ./coverage.txt |
| 83 |
token: ${{ secrets.CODECOV_TOKEN }} |
| 84 |
|
| 85 |
|