From 683031535ccdd9646982d0d9d7e5bfc6196a8893 Mon Sep 17 00:00:00 2001 From: Giovanni Sanchez <108043524+sisyphusSmiling@users.noreply.github.com> Date: Thu, 5 Sep 2024 18:03:15 -0600 Subject: [PATCH] fix failing CI --- .github/workflows/integration-tests.yml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 4d9e197..2b13a22 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -6,22 +6,31 @@ on: push: branches: [main] + jobs: tests: name: Flow CLI Tests runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - with: - submodules: "true" - name: Set up Go uses: actions/setup-go@v3 with: - go-version: 1.18 + go-version: "1.20.x" + - uses: actions/cache@v1 + with: + path: ~/go/pkg/mod + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go- - name: Install Flow CLI - run: bash -ci "$(curl -fsSL https://raw.githubusercontent.com/onflow/flow-cli/master/install.sh)" + run: sh -ci "$(curl -fsSL https://raw.githubusercontent.com/onflow/flow-cli/master/install.sh)" + - name: Flow CLI Version + run: flow version + - name: Update PATH + run: echo "/root/.local/bin" >> $GITHUB_PATH - name: Run tests - run: flow test --cover --covercode="contracts" --coverprofile="coverage.lcov" test/*_tests.cdc + run: sh test.sh - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v3 env: