Skip to content

Commit

Permalink
Bump version of github actions (#1937)
Browse files Browse the repository at this point in the history
Bump version of github actions

- actions/setup-go: Bumping it to v5.
With the v5, cache is done by default, so there is no need to
specify cache: true

- actions/checkout: bumping it to v4
A lot of different improvements, but the one that made me decide
to upgrade was to use node20 instead of node16.
Node16 has en end of life on 11 Sep 2023

- codecov/codecov-action: bumping it to v4 (v4.5.0)
It was hard-coded v4.2.0, meaning that the fixes around detecting
if running from a fork (v4.3, v4.4 and v.4.5) were not backported,
therefore making the job not being able to detect when it was
running from a fork
  • Loading branch information
derrix060 authored Jul 12, 2024
1 parent e7813a7 commit e180de2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 37 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/juno-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,11 @@ jobs:
env:
VM_DEBUG: true
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up go
uses: actions/setup-go@v4.1.0
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
Expand All @@ -50,10 +49,10 @@ jobs:
- name: Benchmark
run: make benchmarks

- uses: actions/upload-artifact@v4
- name: Upload coverage to Codecov
if: matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v4
with:
name: code_coverage
path: ./coverage/coverage.out
if-no-files-found: error
retention-days: 1
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
files: coverage.out
29 changes: 0 additions & 29 deletions .github/workflows/upload-codecov.yml

This file was deleted.

0 comments on commit e180de2

Please sign in to comment.