Skip to content

Commit

Permalink
Update actions/setup-go and setup Dependabot
Browse files Browse the repository at this point in the history
Signed-off-by: Eng Zer Jun <[email protected]>
  • Loading branch information
Juneezee authored and phuslu committed Nov 21, 2024
1 parent 364d959 commit b750508
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 12 deletions.
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates to GitHub Actions every week
interval: "weekly"
10 changes: 6 additions & 4 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ jobs:
benchmark:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22'
check-latest: true
- uses: actions/checkout@v4
cache-dependency-path: go.mod
- name: go mod tidy
run: |
mkdir bench
Expand All @@ -31,11 +32,12 @@ jobs:
sloghanders:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22'
check-latest: true
- uses: actions/checkout@v4
cache-dependency-path: go.mod
- name: go mod tidy
run: |
mkdir bench
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
matrix:
go-version: ['tip', '1.22', '1.21', '1.20', '1.19', '1.18']
steps:
- uses: actions/checkout@v4
- name: Setup Go
if: matrix.go-version != 'tip'
uses: actions/setup-go@master
Expand All @@ -28,7 +29,6 @@ jobs:
sudo tar xJf gotip.linux-amd64.tar.xz -C /usr/local
sudo ln -sf /usr/local/go/bin/go /usr/bin/go
go version
- uses: actions/checkout@v4
- name: Build
run: go build -v -race
- name: Test
Expand All @@ -38,12 +38,13 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22'
check-latest: true
- uses: actions/checkout@v4
cache-dependency-path: go.mod
- name: Lint
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.57.2
./bin/golangci-lint run
uses: golangci/golangci-lint-action@v6
with:
version: v1.57.2
5 changes: 3 additions & 2 deletions .github/workflows/go-slog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ jobs:
benchmark:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22'
check-latest: true
- uses: actions/checkout@v4
cache-dependency-path: go.mod
- name: go mod tidy
run: |
mkdir bench
Expand Down

0 comments on commit b750508

Please sign in to comment.