Skip to content

Commit

Permalink
Refresh actions and go versions
Browse files Browse the repository at this point in the history
  • Loading branch information
deniszh committed Feb 20, 2023
1 parent 1d734b7 commit 459a2df
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -52,7 +52,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -66,6 +66,6 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2


6 changes: 3 additions & 3 deletions .github/workflows/docker-ghcrio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Docker meta
id: meta
uses: docker/metadata-action@v3
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{ github.repository }}
# create latest tag for branch events
Expand All @@ -37,7 +37,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
# push for non-pr events
push: ${{ github.event_name != 'pull_request' }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
uses: golangci/golangci-lint-action@v3
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.48.0
version: v1.51.2

# Optional: working directory, useful for monorepos
# working-directory: somedir
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ jobs:
matrix: ${{ steps.build.outputs.matrix }}
steps:
- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: ^1

- uses: actions/checkout@v2
- uses: actions/checkout@v3
name: Checkout

- name: Test
Expand Down Expand Up @@ -55,7 +55,7 @@ jobs:
- name: Artifact
id: artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: packages
retention-days: 1
Expand All @@ -77,7 +77,7 @@ jobs:
matrix: ${{fromJson(needs.build.outputs.matrix)}}
steps:
- name: Download artifact
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: packages
- name: Upload ${{ matrix.file }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@ jobs:
strategy:
matrix:
go:
- ^1.15
- ^1.16
- ^1.17
- ^1.18
- ^1.19
- ^1.20
- ^1
steps:

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

- name: Check out code into the Go module directory
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Checkout to the latest tag
run: |
Expand Down Expand Up @@ -69,7 +69,7 @@ jobs:
- name: Upload Artifact
if: ${{ matrix.go == '^1' }} # only upload artifact when built with latest go
id: artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: packages-${{ matrix.go }}
retention-days: 3
Expand Down

0 comments on commit 459a2df

Please sign in to comment.