chore(deps): update all dependencies to latest #87
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
name: build | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
permissions: | |
contents: read | |
packages: write # if pushing docker images | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
# Need a PAT so that `make release-tag` will trigger the release workflow. | |
# See: https://docs.github.com/en/actions/using-workflows/triggering-a-workflow#triggering-a-workflow-from-a-workflow | |
token: ${{ github.ref_name == 'main' && secrets.GH_PAT || secrets.GITHUB_TOKEN }} | |
- name: Cache Dependencies | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cache/golangci-lint | |
~/.npm | |
~/go/bin | |
/home/linuxbrew/.linuxbrew | |
key: ${{ runner.os }}-dependencies | |
- name: Set up Homebrew | |
uses: homebrew/actions/setup-homebrew@master | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- name: Install dependencies | |
run: make setup | |
- name: Build | |
run: make build | |
- name: Lint | |
run: make lint | |
- name: Test | |
run: make test | |
- name: Coverage | |
uses: codecov/codecov-action@v5 | |
with: | |
files: coverage.out | |
token: ${{ secrets.CODECOV_TOKEN }} | |
- name: Import GPG key | |
uses: crazy-max/ghaction-import-gpg@v6 | |
if: github.ref_name == 'main' | |
with: | |
gpg_private_key: ${{ secrets.GH_COMMIT_SIGNING_KEY }} | |
passphrase: ${{ secrets.GH_COMMIT_SIGNING_PASS }} | |
git_config_global: true | |
git_user_signingkey: true | |
git_commit_gpgsign: true | |
git_tag_gpgsign: true | |
git_push_gpgsign: false | |
- name: Create release tag | |
if: github.ref_name == 'main' | |
run: make release-tag | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |