Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update GitHub action versions to latest. #791

Merged
merged 6 commits into from
Mar 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 9 additions & 42 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,53 +24,35 @@ jobs:
include:
- ci_step: "lint"
command: "coreum-builder lint"
go-cache: true
wasm-cache: true
linter-cache: true
docker-cache: false
codecov: false
- ci_step: "test"
command: "coreum-builder test"
go-cache: true
wasm-cache: false
linter-cache: false
docker-cache: false
codecov: true
codecov-name: coreum
- ci_step: "integration tests coreum-modules"
command: |
crust znet test --test-groups=coreum-modules --timeout-commit 0.5s
crust znet stop
crust znet coverage-convert
go-cache: true
wasm-cache: true
linter-cache: false
docker-cache: true
codecov: true
codecov-name: coreum-integration-tests-modules
- ci_step: "integration tests coreum-ibc"
command: |
crust znet test --test-groups=coreum-ibc --timeout-commit 1s
go-cache: true
wasm-cache: true
linter-cache: false
docker-cache: true
codecov: false
- ci_step: "integration tests coreum-upgrade-v4.0.0"
command: |
crust znet test --cored-version=v3.0.2 --test-groups=coreum-upgrade,coreum-modules,coreum-ibc --timeout-commit 1s
go-cache: true
wasm-cache: true
linter-cache: false
docker-cache: true
codecov: false
- ci_step: "integration tests faucet"
command: |
crust znet test --test-groups=faucet --timeout-commit 0.5s
go-cache: true
wasm-cache: false
linter-cache: false
docker-cache: true
codecov: false

runs-on: ubuntu-22.04
Expand All @@ -97,30 +79,24 @@ jobs:
echo "$(pwd)/coreum/bin" >> $GITHUB_PATH
echo "$(pwd)/faucet/bin" >> $GITHUB_PATH
echo "$(pwd)/crust/bin" >> $GITHUB_PATH
coreum/bin/coreum-builder build/me
- name: Retrieve go version
id: goversion
run: echo "GO_VERSION=$(coreum/bin/go version)" >> $GITHUB_OUTPUT
- name: Print go version
run: echo ${{ steps.goversion.outputs.GO_VERSION }}
- name: Setup go cache
uses: actions/cache@v4
if: ${{ matrix.go-cache }}
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}-${{ steps.goversion.outputs.GO_VERSION }}
- name: Setup WASM cache
- name: Setup crust cache
uses: actions/cache@v4
if: ${{ matrix.wasm-cache }}
with:
# we need to exclude code-hashes.json from the rest, since the invalidation condition for it is not
# same as WASM cache, but it is same as smart contract artifacts.
path: |
~/.cache/crust/wasm
!/.cache/crust/wasm/code-hashes.json
key: ${{ runner.os }}-wasm-cache-${{ hashFiles('~/.cache/crust/wasm/**/*.rs') }}
path: |
~/.cache/crust
key: ${{ runner.os }}-crust-cache
- name: Setup linter cache
uses: actions/cache@v4
if: ${{ matrix.linter-cache }}
Expand All @@ -134,26 +110,17 @@ jobs:
shell: bash
- name: Set docker cache
uses: satackey/action-docker-layer-caching@v0.0.11
if: ${{ matrix.docker-cache }}
continue-on-error: true
with:
key: ${{ runner.os }}-docker-v3-${{ steps.get-year-week.outputs.date }} # year-week key
- name: Setup smart contract build cache
uses: actions/cache@v4
with:
# we need to cache code-hashes.json under the same key as the artifacts, since the invalidation condition
# for both of them are the same.
path: |
${{ github.workspace }}/coreum/integration-tests/contracts/**/artifacts/*
~/.cache/crust/wasm/code-hashes.json
key: ${{ runner.os }}-cache-smart-contracts-${{ hashFiles('./coreum/**/*.rs') }}
if: ${{ matrix.wasm-cache }}
key: ${{ runner.os }}-docker-${{ steps.get-year-week.outputs.date }} # year-week key
- name: Build step
run: |
run: |
crust build/me
crust build images
faucet-builder build/integration-tests images
coreum-builder build/integration-tests/upgrade build/integration-tests/modules build/integration-tests/ibc images
coreum-builder build/integration-tests images
# remove previously saved znet related data
crust znet remove
- name: Run ${{ matrix.ci_step }}
run: ${{ matrix.command }}
- name: Upload coverage reports to Codecov
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Checkout coreum
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false
path: coreum
fetch-depth: 0
- name: Set up coreum
run: echo "$(pwd)/coreum/bin" >> $GITHUB_PATH
- name: Login to DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
Expand All @@ -42,7 +42,7 @@ jobs:
sha256sum cored-* > checksums.txt
- name: Create release
if: steps.check-tag.outputs.release == 'true'
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
generate_release_notes: true
Expand All @@ -54,7 +54,7 @@ jobs:
checksums.txt
- name: Create release candidate
if: steps.check-tag.outputs.release_candidate == 'true'
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
prerelease: true
Expand Down
2 changes: 1 addition & 1 deletion build/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ replace github.com/CoreumFoundation/coreum/v4 => ../
require (
github.com/CoreumFoundation/coreum-tools v0.4.1-0.20230627094203-821c6a4eebab
github.com/CoreumFoundation/coreum/v4 v4.0.0-20240213123712-d7d6a45ddb8f
github.com/CoreumFoundation/crust/build v0.0.0-20240306094644-ef2b09e2d127
github.com/CoreumFoundation/crust/build v0.0.0-20240314081929-af265f0b38bd
github.com/iancoleman/strcase v0.3.0
github.com/pkg/errors v0.9.1
go.uber.org/zap v1.27.0
Expand Down
4 changes: 2 additions & 2 deletions build/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ github.com/BurntSushi/toml v1.3.2 h1:o7IhLm0Msx3BaB+n3Ag7L8EVlByGnpq14C4YWiu/gL8
github.com/BurntSushi/toml v1.3.2/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ=
github.com/CoreumFoundation/coreum-tools v0.4.1-0.20230627094203-821c6a4eebab h1:XPcSzlQ06tor/py1LkEM9FX70LIeDWB++vLuAO6eAYI=
github.com/CoreumFoundation/coreum-tools v0.4.1-0.20230627094203-821c6a4eebab/go.mod h1:VD93vCHkxYaT/RhOesXTFgd/GQDW54tr0BqGi5JU1c0=
github.com/CoreumFoundation/crust/build v0.0.0-20240306094644-ef2b09e2d127 h1:hOHskC1CPLkjSCdpy9NLX0rgzvNzOpQGJx7Qu8kJHng=
github.com/CoreumFoundation/crust/build v0.0.0-20240306094644-ef2b09e2d127/go.mod h1:ZUxc7Pskj95EYmPMp8kU6yyeyZ5PcWuixfbVfIlGTVs=
github.com/CoreumFoundation/crust/build v0.0.0-20240314081929-af265f0b38bd h1:CE7Md29WRh4MmEU0ixr+RaPlIMcQYZBl0RqynddzPDA=
github.com/CoreumFoundation/crust/build v0.0.0-20240314081929-af265f0b38bd/go.mod h1:ZUxc7Pskj95EYmPMp8kU6yyeyZ5PcWuixfbVfIlGTVs=
github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
Expand Down
Loading
Loading