Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
prymitive committed Aug 27, 2024
1 parent d972a57 commit 0db239f
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ permissions:
pull-requests: write

jobs:
test-go:
benchmark:
runs-on: ubuntu-latest
steps:
- name: Check out code
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ on:
types:
- published

permissions: read-all

jobs:
build:
runs-on: ubuntu-latest
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/deps.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: "Dependency Review"
on: [pull_request]

permissions:
contents: read
permissions: read-all

jobs:
dependency-review:
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ on:
types:
- published

permissions: read-all

jobs:
amd64:
docker-amd64:
runs-on: ubuntu-latest
steps:
- name: Check out code
Expand All @@ -27,7 +29,7 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build and push
- name: Build
id: docker_build
uses: docker/build-push-action@v6
with:
Expand All @@ -36,7 +38,7 @@ jobs:
platforms: linux/amd64
push: false

arm64:
docker-arm64:
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
steps:
Expand All @@ -52,7 +54,7 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build and push
- name: Build
id: docker_build
uses: docker/build-push-action@v6
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Spellcheck
on: [pull_request]

permissions: read-all

jobs:
spellcheck:
name: Spellcheck
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ on:
branches:
- main

permissions: read-all

jobs:
test-go:
examples:
runs-on: ubuntu-latest
steps:
- name: Check out code
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/go-mod-tidy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
branches:
- main

permissions: read-all

jobs:
go-mod-tidy:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
branches:
- main

permissions: read-all

jobs:
goreleaser-config:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
branches:
- main

permissions: read-all

jobs:
golangci-lint:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ concurrency:
cancel-in-progress: true

jobs:
build:
pages:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
branches:
- main

permissions: read-all

jobs:
test-go:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 0db239f

Please sign in to comment.