Skip to content

Commit

Permalink
Upgrading workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
samlown committed Jun 27, 2024
1 parent 77c47be commit ed6ec56
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@ jobs:

steps:
- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: "go.mod"
id: go

- name: Prepare .netrc
uses: extractions/netrc@v1
Expand All @@ -22,12 +28,7 @@ jobs:
username: ${{ secrets.GO_MOD_USER }}
password: ${{ secrets.GO_MOD_PASS }}

- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: "1.17.5"

- name: Lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.52
version: v1.55
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: "0" # make sure we get all commits!

Expand All @@ -36,7 +36,7 @@ jobs:
- name: Bump version and push tag
id: bump
if: env.COMMIT_TYPE != 'tags'
uses: anothrNick/github-tag-action@1.36.0
uses: anothrNick/github-tag-action@1.52.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_BRANCHES: main
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v1
uses: actions/setup-go@v4
with:
go-version: "1.17.5"
go-version-file: "go.mod"
id: go

- name: Check out code
uses: actions/checkout@v2

#- name: Configure git for private modules
# run: |
# git config --global url."https://${{ secrets.GO_MOD_USER }}:${{ secrets.GO_MOD_PASS }}@github.com".insteadOf "https://github.com"
Expand Down

0 comments on commit ed6ec56

Please sign in to comment.