Skip to content

Commit

Permalink
Update CI configs to v0.7.8
Browse files Browse the repository at this point in the history
Update lint scripts and CI configs.
  • Loading branch information
pionbot authored and Sean-Der committed May 21, 2022
1 parent 659eb67 commit 64678eb
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/generate-authors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ on:

jobs:
checksecret:
permissions:
contents: none
runs-on: ubuntu-latest
outputs:
is_PIONBOT_PRIVATE_KEY_set: ${{ steps.checksecret_job.outputs.is_PIONBOT_PRIVATE_KEY_set }}
Expand All @@ -28,6 +30,8 @@ jobs:
echo "::set-output name=is_PIONBOT_PRIVATE_KEY_set::${{ env.PIONBOT_PRIVATE_KEY != '' }}"
generate-authors:
permissions:
contents: write
needs: [checksecret]
if: needs.checksecret.outputs.is_PIONBOT_PRIVATE_KEY_set == 'true'
runs-on: ubuntu-latest
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ on:
- opened
- edited
- synchronize

permissions:
contents: read

jobs:
lint-commit-message:
name: Metadata
Expand All @@ -41,6 +45,9 @@ jobs:

lint-go:
name: Go
permissions:
contents: read
pull-requests: read
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/renovate-go-mod-fix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ on:
branches:
- renovate/*

permissions:
contents: write

jobs:
go-mod-fix:
runs-on: ubuntu-latest
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,16 @@ on:
pull_request:
branches:
- master

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
go: ["1.16", "1.17"]
go: ["1.17", "1.18"]
fail-fast: false
name: Go ${{ matrix.go }}
steps:
Expand All @@ -44,9 +48,7 @@ jobs:
go-version: ${{ matrix.go }}

- name: Setup go-acc
run: |
go get github.com/ory/go-acc
git checkout go.mod go.sum
run: go install github.com/ory/go-acc@latest

- name: Set up gotestfmt
uses: haveyoudebuggedit/gotestfmt-action@v2
Expand Down Expand Up @@ -87,7 +89,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go: ["1.16", "1.17"]
go: ["1.17", "1.18"]
fail-fast: false
name: Go i386 ${{ matrix.go }}
steps:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/tidy-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ on:
branches:
- master

permissions:
contents: read

jobs:
Check:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 64678eb

Please sign in to comment.