Skip to content

Commit

Permalink
Merge pull request #10 from ecri-org/go.1.21
Browse files Browse the repository at this point in the history
feat(runtime): update go to 1.21.0 and update action deps
  • Loading branch information
JasonGiedymin authored Aug 21, 2023
2 parents 5d2e880 + 31b4c1d commit 44d32fd
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 22 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
env:
IMAGE_NAME: go-redirector
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '^1.16.1'
go-version: '^1.21.0'
- name: Setup Vars
run: |
echo "BuildVersion=$(cat .version)" >> $GITHUB_ENV
Expand All @@ -27,9 +27,9 @@ jobs:
run: |
go test --race -covermode=atomic -coverprofile=coverage.out ./...
- name: Convert coverage.out to coverage.lcov
uses: jandelgado/gcov2lcov-action@v1.0.8
uses: jandelgado/gcov2lcov-action@v1
- name: Coveralls
uses: coverallsapp/github-action@v1.1.2
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: coverage.lcov
Expand All @@ -44,12 +44,12 @@ jobs:
- name: Show binary version info
run: dist/linux/$IMAGE_NAME-linux-amd64 -version
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
file: ./ci/Dockerfile
context: .
Expand All @@ -60,18 +60,18 @@ jobs:
steps:
- name: Install Go
if: success()
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: 1.15.x
go-version: 1.21.0
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Calc coverage
run: |
go test --race -covermode=atomic -coverprofile=coverage.out ./...
- name: Convert coverage.out to coverage.lcov
uses: jandelgado/gcov2lcov-action@v1.0.8
uses: jandelgado/gcov2lcov-action@v1
- name: Coveralls
uses: coverallsapp/github-action@v1.1.2
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: coverage.lcov
16 changes: 8 additions & 8 deletions .github/workflows/tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
env:
IMAGE_NAME: go-redirector
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Docker meta
id: docker_meta
uses: crazy-max/ghaction-docker-meta@v1
Expand All @@ -25,9 +25,9 @@ jobs:
tag-semver: |
{{major}}.{{minor}}
{{major}}.{{minor}}.{{patch}}
- uses: actions/setup-go@v2
- uses: actions/setup-go@v4
with:
go-version: '^1.16.1'
go-version: '^1.21.0'
- name: Setup Vars
run: |
echo "BuildVersion=$(cat .version)" >> $GITHUB_ENV
Expand All @@ -37,9 +37,9 @@ jobs:
run: |
go test --race -covermode=atomic -coverprofile=coverage.out ./...
- name: Convert coverage.out to coverage.lcov
uses: jandelgado/gcov2lcov-action@v1.0.8
uses: jandelgado/gcov2lcov-action@v1
- name: Coveralls
uses: coverallsapp/github-action@v1.1.2
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: coverage.lcov
Expand All @@ -54,12 +54,12 @@ jobs:
- name: Show binary version info
run: dist/linux/$IMAGE_NAME-linux-amd64 -version
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2
- name: Login to GHCR
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
Expand Down
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.1
0.2.2

0 comments on commit 44d32fd

Please sign in to comment.