Skip to content

Commit

Permalink
Bump action versions in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
arnested committed May 9, 2022
1 parent 9a2dbd1 commit 84d22a7
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,14 @@ jobs:
my-go-workflow:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: arnested/go-version-action@v1
id: go-version
- name: Install Go ${{ steps.go-version.outputs.minimal }}
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: ${{ steps.go-version.outputs.minimal }}
check-latest: true
```

![Log of running action](docs/action-run.png)
Expand All @@ -102,7 +103,7 @@ jobs:
outputs:
matrix: ${{ steps.versions.outputs.matrix }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: arnested/go-version-action@v1
id: versions
test:
Expand All @@ -113,11 +114,12 @@ jobs:
matrix:
version: ${{ fromJSON(needs.go-versions.outputs.matrix) }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.version }}
check-latest: true
- name: go test
run: go test -v -race -cover -covermode=atomic -coverprofile=coverage.txt ./...
```
Expand Down

0 comments on commit 84d22a7

Please sign in to comment.