From ddcc76b5fa38d6f178135d8543b145a6915c1195 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Mon, 16 May 2022 14:16:16 +0100 Subject: [PATCH] ci: update github actions (#2010) --- .github/workflows/e2e-tests.yml | 2 +- .github/workflows/main.yml | 4 ++-- .github/workflows/publish-cli.yml | 34 +++++++++++++++---------------- .github/workflows/publish.yml | 26 +++++++++++------------ .github/workflows/sync.yml | 2 +- .github/workflows/unit-tests.yml | 2 +- 6 files changed, 35 insertions(+), 35 deletions(-) diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index 514a3193..31f0bff1 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -6,7 +6,7 @@ jobs: build-and-e2e: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - run: npm ci - run: npm run bundle - run: npm run e2e diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ab74307f..71fa9366 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,7 +11,7 @@ jobs: contents: read steps: - name: Check out the repo - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Login to GitHub Container Registry uses: docker/login-action@v1 with: @@ -48,7 +48,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Docker meta id: docker_meta diff --git a/.github/workflows/publish-cli.yml b/.github/workflows/publish-cli.yml index 635eae5e..7827253d 100644 --- a/.github/workflows/publish-cli.yml +++ b/.github/workflows/publish-cli.yml @@ -11,10 +11,10 @@ jobs: if: needs.check-version-cli.outputs.changed == 'true' runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 - name: Cache node modules - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS key: npm-${{ hashFiles('package-lock.json') }} @@ -24,7 +24,7 @@ jobs: - run: npm ci - run: npm run bundle - name: Store bundle artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: bundles-cli path: bundles @@ -34,17 +34,17 @@ jobs: if: needs.check-version-cli.outputs.changed == 'true' runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v3 - run: npm ci && npm ci --prefix cli - run: npm test e2e-tests: needs: [bundle] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v3 - run: npm ci - name: Download bundled artifact - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: bundles-cli path: bundles @@ -54,10 +54,10 @@ jobs: if: needs.check-version-cli.outputs.changed == 'true' runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 - name: Cache node modules - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ~/.npm key: npm-${{ hashFiles('package-lock.json') }} @@ -69,7 +69,7 @@ jobs: - name: Bundle run: npm run compile:cli - name: Store bundle artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: cli path: cli @@ -81,9 +81,9 @@ jobs: changed: ${{ steps.check.outputs.changed }} steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Set up Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 - name: Check if version has been updated id: check uses: EndBug/version-check@v2.0.1 @@ -96,18 +96,18 @@ jobs: if: needs.check-version-cli.outputs.changed == 'true' runs-on: ubuntu-latest steps: - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v3 with: node-version: '14.x' registry-url: 'https://registry.npmjs.org' - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Download cli bundled artifact - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: cli path: cli - name: Cache node modules - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS key: npm-${{ hashFiles('package-lock.json') }} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5146cb04..0cdf2500 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -9,10 +9,10 @@ jobs: bundle: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 - name: Cache node modules - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS key: npm-${{ hashFiles('package-lock.json') }} @@ -22,7 +22,7 @@ jobs: - run: npm ci - run: npm run bundle - name: Store bundle artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: bundles path: bundles @@ -30,17 +30,17 @@ jobs: unit-tests: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v3 - run: npm ci && npm ci --prefix cli - run: npm test e2e-tests: needs: [bundle] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v3 - run: npm ci - name: Download bundled artifact - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: bundles path: bundles @@ -50,7 +50,7 @@ jobs: # needs: [bundle, unit-tests, e2e-tests] # runs-on: ubuntu-latest # steps: - # - uses: actions/checkout@v1 + # - uses: actions/checkout@v3 # - name: Configure AWS Credentials # uses: aws-actions/configure-aws-credentials@v1 # with: @@ -60,7 +60,7 @@ jobs: # - name: Install dependencies # run: npm ci # - name: Download bundled artifacts - # uses: actions/download-artifact@v2 + # uses: actions/download-artifact@v3 # with: # name: bundles # path: bundles @@ -74,18 +74,18 @@ jobs: needs: [bundle, unit-tests, e2e-tests] runs-on: ubuntu-latest steps: - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v3 with: node-version: '14.x' registry-url: 'https://registry.npmjs.org' - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Download bundled artifacts - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: bundles path: bundles - name: Cache node modules - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS key: npm-${{ hashFiles('package-lock.json') }} diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml index ba673bd0..18819cc7 100644 --- a/.github/workflows/sync.yml +++ b/.github/workflows/sync.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Repository - uses: actions/checkout@master + uses: actions/checkout@v3 - name: Run GitHub File Sync uses: Redocly/repo-file-sync-action@master with: diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 3df1b925..ed1d672b 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -6,7 +6,7 @@ jobs: build-and-unit: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v3 - run: npm ci && npm ci --prefix cli - run: npm run bundle - run: npm test