Skip to content

Commit

Permalink
fix: actions versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
arshamalh committed Apr 18, 2024
1 parent aeada26 commit 4a6447e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/gen_coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,19 @@ on:
workflow_dispatch:

jobs:

build:
runs-on: ${{ matrix.os }}
env:
GO111MODULE: on
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
go: ['1.20', '1.21']
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}

Expand All @@ -28,13 +29,13 @@ jobs:
go tool cover -func coverage.out -o coverage.out
- name: Go Coverage Badge
uses: tj-actions/coverage-badge-go@v1
uses: tj-actions/coverage-badge-go@v2
if: ${{ runner.os == 'Linux' && matrix.go == '1.21' }}
with:
green: 80
filename: coverage.out

- uses: stefanzweifel/git-auto-commit-action@v4
- uses: stefanzweifel/git-auto-commit-action@v5
id: auto-commit-action
with:
commit_message: Apply Code Coverage Badge
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Login to Docker
uses: docker/login-action@v1
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
GO111MODULE: on
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: 1.21.0

Expand Down

0 comments on commit 4a6447e

Please sign in to comment.