Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CI configs to v0.7.8 #200

Merged
merged 1 commit into from
May 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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