mirror of
https://github.com/lukaszraczylo/gohoarder.git
synced 2026-10-17 01:17:31 +00:00
ci: build with Go 1.27 and grant PR checks access
go.mod needs Go 1.26 but the workflows pinned Go 1.25. The pull request workflow also lacked the permissions that the shared workflow requires, so it never started.
This commit is contained in:
@@ -14,6 +14,6 @@ jobs:
|
|||||||
autoupdate:
|
autoupdate:
|
||||||
uses: lukaszraczylo/shared-actions/.github/workflows/go-autoupdate.yaml@main
|
uses: lukaszraczylo/shared-actions/.github/workflows/go-autoupdate.yaml@main
|
||||||
with:
|
with:
|
||||||
go-version: ">=1.25"
|
go-version: ">=1.27"
|
||||||
release-workflow: "release.yaml"
|
release-workflow: "release.yaml"
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|||||||
@@ -9,8 +9,13 @@ on:
|
|||||||
- "**"
|
- "**"
|
||||||
- "!main"
|
- "!main"
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pull-requests: write
|
||||||
|
security-events: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
pr-checks:
|
pr-checks:
|
||||||
uses: lukaszraczylo/shared-actions/.github/workflows/go-pr.yaml@main
|
uses: lukaszraczylo/shared-actions/.github/workflows/go-pr.yaml@main
|
||||||
with:
|
with:
|
||||||
go-version: "1.25"
|
go-version: ">=1.27"
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ jobs:
|
|||||||
release:
|
release:
|
||||||
uses: lukaszraczylo/shared-actions/.github/workflows/go-release-cgo.yaml@main
|
uses: lukaszraczylo/shared-actions/.github/workflows/go-release-cgo.yaml@main
|
||||||
with:
|
with:
|
||||||
go-version: "1.25"
|
go-version: ">=1.27"
|
||||||
# Enable frontend build
|
# Enable frontend build
|
||||||
node-enabled: true
|
node-enabled: true
|
||||||
node-version: "20"
|
node-version: "20"
|
||||||
@@ -45,7 +45,7 @@ jobs:
|
|||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: "1.25"
|
go-version: ">=1.27"
|
||||||
|
|
||||||
- name: Run benchmarks
|
- name: Run benchmarks
|
||||||
run: go test -bench=. -benchmem ./... -run=^# | tee output.txt
|
run: go test -bench=. -benchmem ./... -run=^# | tee output.txt
|
||||||
|
|||||||
Reference in New Issue
Block a user