From c73111059641854ceb21936c750fe30f6517f275 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Tue, 5 Jul 2022 10:53:46 +0100 Subject: [PATCH] CI updates (#1503) * monthly dependabot updates * branch trigger changes * checkout barge `main`, bump action --- .github/dependabot.yml | 3 +-- .github/workflows/ci.yml | 28 ++++++++++++---------------- .github/workflows/publish.yml | 2 +- 3 files changed, 14 insertions(+), 19 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 8b9227cb..58a2ed77 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -2,8 +2,7 @@ version: 2 updates: - package-ecosystem: npm directory: '/' - versioning-strategy: increase schedule: - interval: daily + interval: monthly time: '03:00' timezone: Europe/Berlin diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5a46766d..e66601e1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,7 @@ on: push: branches: - main - - v4main + - v3 tags: - '**' pull_request: @@ -15,7 +15,7 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: actions/setup-node@v2 with: node-version: '16' @@ -34,7 +34,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: actions/setup-node@v2 with: node-version: '16' @@ -48,7 +48,7 @@ jobs: restore-keys: ${{ runner.os }}-test-unit-${{ env.cache-name }}- - name: Checkout Barge - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: repository: 'oceanprotocol/barge' path: 'barge' @@ -56,7 +56,7 @@ jobs: - name: Run Ganache with Barge working-directory: ${{ github.workspace }}/barge run: | - bash -x start_ocean.sh --no-aquarius --no-elasticsearch --no-provider --no-dashboard 2>&1 > start_ocean.log & + bash -x start_ocean.sh --no-aquarius --no-elasticsearch --no-provider --no-dashboard 2>&1 > start_ocean.log & - run: npm ci - name: Wait for contracts deployment working-directory: ${{ github.workspace }}/barge @@ -77,7 +77,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: actions/setup-node@v2 with: node-version: '16' @@ -96,7 +96,7 @@ jobs: run: echo "ADDRESS_FILE=${HOME}/.ocean/ocean-contracts/artifacts/address.json" >> $GITHUB_ENV - name: Checkout Barge - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: repository: 'oceanprotocol/barge' path: 'barge' @@ -124,13 +124,12 @@ jobs: sleep 10 [ -f "$HOME/.ocean/ocean-contracts/artifacts/ready" -a -f "$HOME/.ocean/ocean-c2d/ready" ] && break done - - name: integration run: npm run test:integration:cover env: PROVIDER_URL: 'http://172.15.0.4:8030' - - name: docker logs + - name: docker logs run: docker logs ocean_aquarius_1 && docker logs ocean_provider_1 && docker logs ocean_provider2_1 && docker logs ocean_computetodata_1 if: ${{ failure() }} - name: Upload coverage @@ -149,7 +148,7 @@ jobs: node: ['15', '16'] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: actions/setup-node@v2 with: node-version: ${{ matrix.node }} @@ -170,7 +169,7 @@ jobs: needs: [test_unit, test_integration] if: ${{ success() && github.actor != 'dependabot[bot]' }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: actions/download-artifact@v2 with: name: coverage @@ -187,13 +186,13 @@ jobs: runs-on: ubuntu-latest needs: [test_unit, test_integration] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: actions/setup-node@v2 with: node-version: '16' - name: checkout ocean.js repo - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: repository: 'oceanprotocol/ocean.js' path: 'ocean.js' @@ -207,6 +206,3 @@ jobs: - name: Create Guide & Commit if there are changes run: npm run commit:guide - - - diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c72109de..277bc9f2 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -11,7 +11,7 @@ jobs: env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: actions/setup-node@v2 with: node-version: '16'