Update CI configs to v0.7.8

Update lint scripts and CI configs.
This commit is contained in:
Pion
2022-05-20 20:35:25 +00:00
committed by Sean DuBois
parent 9ad778c0ba
commit 007b0a9ee1
5 changed files with 24 additions and 5 deletions

View File

@@ -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 }}
@@ -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

View File

@@ -16,6 +16,10 @@ on:
- opened
- edited
- synchronize
permissions:
contents: read
jobs:
lint-commit-message:
name: Metadata
@@ -41,6 +45,9 @@ jobs:
lint-go:
name: Go
permissions:
contents: read
pull-requests: read
runs-on: ubuntu-latest
strategy:
fail-fast: false

View File

@@ -15,6 +15,9 @@ on:
branches:
- renovate/*
permissions:
contents: write
jobs:
go-mod-fix:
runs-on: ubuntu-latest

View File

@@ -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:
@@ -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
@@ -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:

View File

@@ -18,6 +18,9 @@ on:
branches:
- master
permissions:
contents: read
jobs:
Check:
runs-on: ubuntu-latest