Skip to content

Commit

Permalink
Merge pull request #580 from go-graphite/dzhdanov/bump-actions
Browse files Browse the repository at this point in the history
Actions bump and fpm fix
  • Loading branch information
deniszh committed Feb 15, 2024
2 parents fb6abd3 + 0e8bba7 commit 115958e
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Expand Up @@ -28,7 +28,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/docker-ghcrio.yml
Expand Up @@ -13,10 +13,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}
# create latest tag for branch events
Expand All @@ -30,14 +30,14 @@ jobs:
type=semver,pattern={{major}}.{{minor}}.{{patch}}
- name: Login to ghcr.io
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
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
Expand Up @@ -9,12 +9,12 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v4
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.51.2
version: v1.55.2

# Optional: working directory, useful for monorepos
# working-directory: somedir
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/release.yml
Expand Up @@ -17,11 +17,11 @@ jobs:
matrix: ${{ steps.build.outputs.matrix }}
steps:
- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ^1

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

- name: Test
Expand All @@ -32,9 +32,10 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7' # Version range or exact version of a Ruby version to use, using semvers version range syntax.
ruby-version: "2.7" # Version range or exact version of a Ruby version to use, using semvers version range syntax.
- name: Install packaging dependencies
run: |
gem install dotenv -v 2.8.1
gem install rake fpm:1.10.2 package_cloud
GO111MODULE=off go get github.com/mitchellh/gox
Expand All @@ -46,7 +47,7 @@ jobs:
ARTIFACTS=
# Upload all deb and rpm packages
for package in *deb *rpm; do ARTIFACTS=${ARTIFACTS}\"$package\",\ ; done
echo ::set-output name=matrix::{\"file\": [${ARTIFACTS} \"sha256sum\", \"md5sum\"]}
echo "matrix={\"file\": [${ARTIFACTS} \"sha256sum\", \"md5sum\"]}" >> "$GITHUB_OUTPUT"
- name: Check version
id: check_version
Expand All @@ -55,7 +56,7 @@ jobs:
- name: Artifact
id: artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: packages
retention-days: 1
Expand All @@ -77,7 +78,7 @@ jobs:
matrix: ${{fromJson(needs.build.outputs.matrix)}}
steps:
- name: Download artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: packages
- name: Upload ${{ matrix.file }}
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/tests.yml
Expand Up @@ -13,12 +13,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go: [ 1.18.x, 1.19.x, 1.20.x, 1.21.x, tip ]
go: [ 1.19.x, 1.20.x, 1.21.x, 1.22.x, tip ]

steps:
- name: Set up Go stable
if: matrix.go != 'tip'
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Set up Go tip
Expand All @@ -32,7 +32,7 @@ jobs:
echo "PATH=$HOME/go/bin:$HOME/sdk/gotip/bin/:$PATH" >> $GITHUB_ENV
- name: Check out code into the Go module directory
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Checkout to the latest tag
run: |
Expand Down Expand Up @@ -63,6 +63,7 @@ jobs:

- name: Install packaging dependencies
run: |
gem install dotenv -v 2.8.1
gem install rake fpm:1.10.2 package_cloud
go install github.com/mitchellh/gox@latest
Expand All @@ -74,7 +75,7 @@ jobs:
- name: Upload Artifact
if: ${{ matrix.go == 'tip' }} # only upload artifact when built with latest go
id: artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: packages-${{ matrix.go }}
retention-days: 3
Expand Down

0 comments on commit 115958e

Please sign in to comment.