Skip to content

Commit

Permalink
chore: update workflow
Browse files Browse the repository at this point in the history
Signed-off-by: rogerogers <rogers@rogerogers.com>
  • Loading branch information
rogerogers committed Apr 20, 2024
1 parent 0feaebb commit f65e7cd
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 22 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.19
go-version: 1.21

- uses: actions/cache@v3
with:
Expand Down
14 changes: 5 additions & 9 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Checkout Repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- id: set-matrix
run: ./hack/resolve-modules.sh
Expand All @@ -22,23 +22,19 @@ jobs:
strategy:
matrix: ${{ fromJson(needs.resolve-modules.outputs.matrix) }}
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.21
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v4
with:
version: latest
working-directory: ${{ matrix.workdir }}
args: -E gofumpt --timeout 5m
args: -E gofumpt --timeout 5m --go 1.21
skip-pkg-cache: true

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
Expand Down
16 changes: 6 additions & 10 deletions .github/workflows/push-check.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Push Check

on: [ push ]
on: [push]

jobs:
resolve-modules:
Expand All @@ -10,7 +10,7 @@ jobs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Checkout Repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- id: set-matrix
run: ./hack/resolve-modules.sh
Expand All @@ -22,23 +22,19 @@ jobs:
strategy:
matrix: ${{ fromJson(needs.resolve-modules.outputs.matrix) }}
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.21
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v4
with:
version: latest
working-directory: ${{ matrix.workdir }}
args: -E gofumpt
args: -E gofumpt --timeout 5m --go 1.21
skip-pkg-cache: true

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
name: runner / staticcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: reviewdog/action-staticcheck@v1
with:
github_token: ${{ secrets.github_token }}
Expand Down

0 comments on commit f65e7cd

Please sign in to comment.