Merge pull request #270 from masutaka/update-readme #484
This file contains hidden or 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: Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
actionlint: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
permissions: | |
checks: write | |
contents: read | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run actionlint | |
uses: reviewdog/action-actionlint@a5524e1c19e62881d79c1f1b9b6f09f16356e281 # v1.65.2 | |
with: | |
fail_level: error | |
filter_mode: nofilter | |
level: error | |
reporter: github-pr-review | |
codeql: | |
permissions: | |
actions: read | |
checks: read | |
contents: read | |
security-events: write | |
uses: route06/actions/.github/workflows/codeql.yml@3bcea5bf834ff2e0e6c912c1167fcc1fe05e49c2 # v2.7.0 | |
test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
permissions: | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go environment | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
- run: make test-all | |
pushover: | |
name: pushover if failure | |
if: github.ref_name == github.event.repository.default_branch && failure() | |
needs: [actionlint, codeql, test] | |
uses: masutaka/actions/.github/workflows/pushover.yml@main | |
permissions: | |
contents: read | |
secrets: | |
PUSHOVER_API_KEY: ${{ secrets.PUSHOVER_API_KEY }} | |
PUSHOVER_USER_KEY: ${{ secrets.PUSHOVER_USER_KEY }} |