From 9e3e298acae7b08f5918d900c75879099cc9f193 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A4=E0=A5=8B=E0=A4=AB?= =?UTF-8?q?=E0=A5=8D=E0=A4=AB=E0=A5=87=E0=A4=B2=E0=A4=B8=E0=A5=8D=E0=A4=95?= =?UTF-8?q?=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=AA=E0=A5=8D=E0=A4=9F=E2=84=A2?= Date: Tue, 22 Aug 2023 11:21:16 +0200 Subject: [PATCH] ci: Fix versions of all external Github actions (no-changelog) (#6984) --- .../workflows/check-documentation-urls.yml | 8 +-- .github/workflows/check-pr-title.yml | 6 +- .github/workflows/check-tests.yml | 4 +- .github/workflows/checklist.yml | 2 +- .github/workflows/ci-master.yml | 64 +++++++++---------- .github/workflows/ci-postgres-mysql.yml | 6 +- .github/workflows/ci-pull-requests.yml | 64 +++++++++---------- .github/workflows/docker-base-image.yml | 10 +-- .github/workflows/docker-images-nightly.yml | 10 +-- .github/workflows/docker-images.yml | 12 ++-- .github/workflows/e2e-reusable.yml | 44 ++++++------- .github/workflows/release-create-pr.yml | 6 +- .github/workflows/release-publish.yml | 6 +- .github/workflows/release-push-to-channel.yml | 4 +- .github/workflows/test-workflows.yml | 12 ++-- package.json | 2 +- 16 files changed, 124 insertions(+), 136 deletions(-) diff --git a/.github/workflows/check-documentation-urls.yml b/.github/workflows/check-documentation-urls.yml index 3b634d5435..4d5da5131e 100644 --- a/.github/workflows/check-documentation-urls.yml +++ b/.github/workflows/check-documentation-urls.yml @@ -14,17 +14,17 @@ jobs: timeout-minutes: 5 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v3.5.3 - - uses: pnpm/action-setup@v2.2.4 + - uses: pnpm/action-setup@v2.4.0 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v3.7.0 with: node-version: 18.x cache: 'pnpm' - name: Install dependencies - run: pnpm install + run: pnpm install --frozen-lockfile - name: Build nodes-base run: pnpm --filter @n8n/client-oauth2 --filter n8n-workflow --filter n8n-core --filter n8n-nodes-base build diff --git a/.github/workflows/check-pr-title.yml b/.github/workflows/check-pr-title.yml index 95415c9b80..516e4b2275 100644 --- a/.github/workflows/check-pr-title.yml +++ b/.github/workflows/check-pr-title.yml @@ -16,11 +16,11 @@ jobs: timeout-minutes: 5 steps: - name: Check out branch - uses: actions/checkout@v3 + uses: actions/checkout@v3.5.3 - - uses: pnpm/action-setup@v2.2.4 + - uses: pnpm/action-setup@v2.4.0 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v3.7.0 with: node-version: 18.x cache: 'pnpm' diff --git a/.github/workflows/check-tests.yml b/.github/workflows/check-tests.yml index e5f47651f4..78d4b04fab 100644 --- a/.github/workflows/check-tests.yml +++ b/.github/workflows/check-tests.yml @@ -15,12 +15,12 @@ jobs: continue-on-error: true steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v3.5.3 with: fetch-depth: 0 - name: Use Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v3.7.0 with: node-version: 18.x diff --git a/.github/workflows/checklist.yml b/.github/workflows/checklist.yml index dfcfca852f..6262918456 100644 --- a/.github/workflows/checklist.yml +++ b/.github/workflows/checklist.yml @@ -14,7 +14,7 @@ jobs: name: Checklist job steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v3.5.3 - name: Checklist uses: wyozi/contextual-qa-checklist-action@master with: diff --git a/.github/workflows/ci-master.yml b/.github/workflows/ci-master.yml index 80793e13b6..a617ca9153 100644 --- a/.github/workflows/ci-master.yml +++ b/.github/workflows/ci-master.yml @@ -16,12 +16,12 @@ jobs: node-version: [18.x, 20.x] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v3.5.3 - - uses: pnpm/action-setup@v2.2.4 + - uses: pnpm/action-setup@v2.4.0 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v3.7.0 with: node-version: ${{ matrix.node-version }} cache: pnpm @@ -33,13 +33,9 @@ jobs: run: pnpm build - name: Cache build artifacts - uses: actions/cache@v3 + uses: actions/cache/save@v3.3.1 with: - path: | - /github/home/.cache - /github/home/.pnpm-store - ./node_modules - ./packages + path: ./packages/**/dist key: ${{ github.sha }}-base:${{ matrix.node-version }}-test-lint unit-test: @@ -50,29 +46,28 @@ jobs: matrix: node-version: [18.x, 20.x] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v3.5.3 with: repository: n8n-io/n8n ref: ${{ inputs.branch }} - - name: Restore cached build artifacts - uses: actions/cache@v3 - with: - path: | - /github/home/.cache - /github/home/.pnpm-store - ./node_modules - ./packages - key: ${{ github.sha }}-base:${{ matrix.node-version }}-test-lint - - - uses: pnpm/action-setup@v2.2.4 + - uses: pnpm/action-setup@v2.4.0 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v3.7.0 with: node-version: ${{ matrix.node-version }} cache: pnpm + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Restore cached build artifacts + uses: actions/cache/restore@v3.3.1 + with: + path: ./packages/**/dist + key: ${{ github.sha }}-base:${{ matrix.node-version }}-test-lint + - name: Test run: pnpm test @@ -89,29 +84,28 @@ jobs: matrix: node-version: [18.x, 20.x] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v3.5.3 with: repository: n8n-io/n8n ref: ${{ inputs.branch }} - - name: Restore cached build artifacts - uses: actions/cache@v3 - with: - path: | - /github/home/.cache - /github/home/.pnpm-store - ./node_modules - ./packages - key: ${{ github.sha }}-base:${{ matrix.node-version }}-test-lint - - - uses: pnpm/action-setup@v2.2.4 + - uses: pnpm/action-setup@v2.4.0 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v3.7.0 with: node-version: ${{ matrix.node-version }} cache: pnpm + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Restore cached build artifacts + uses: actions/cache/restore@v3.3.1 + with: + path: ./packages/**/dist + key: ${{ github.sha }}-base:${{ matrix.node-version }}-test-lint + - name: Lint env: CI_LINT_MASTER: true diff --git a/.github/workflows/ci-postgres-mysql.yml b/.github/workflows/ci-postgres-mysql.yml index ccd999ee8a..9e342a3750 100644 --- a/.github/workflows/ci-postgres-mysql.yml +++ b/.github/workflows/ci-postgres-mysql.yml @@ -16,11 +16,11 @@ jobs: DB_POSTGRESDB_PASSWORD: password steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v3.5.3 - - uses: pnpm/action-setup@v2.2.4 + - uses: pnpm/action-setup@v2.4.0 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v3.7.0 with: node-version: 18.x cache: 'pnpm' diff --git a/.github/workflows/ci-pull-requests.yml b/.github/workflows/ci-pull-requests.yml index 714e6b4938..6bc6e7f97e 100644 --- a/.github/workflows/ci-pull-requests.yml +++ b/.github/workflows/ci-pull-requests.yml @@ -7,15 +7,15 @@ jobs: name: Install & Build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v3.5.3 with: repository: n8n-io/n8n ref: ${{ inputs.branch }} - - uses: pnpm/action-setup@v2.2.4 + - uses: pnpm/action-setup@v2.4.0 - name: Use Node.js 18 - uses: actions/setup-node@v3 + uses: actions/setup-node@v3.7.0 with: node-version: 18.x cache: pnpm @@ -27,13 +27,9 @@ jobs: run: pnpm build - name: Cache build artifacts - uses: actions/cache@v3 + uses: actions/cache/save@v3.3.1 with: - path: | - /github/home/.cache - /github/home/.pnpm-store - ./node_modules - ./packages + path: ./packages/**/dist key: ${{ github.sha }}-base:18-test-lint unit-test: @@ -41,29 +37,28 @@ jobs: runs-on: ubuntu-latest needs: install steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v3.5.3 with: repository: n8n-io/n8n ref: ${{ inputs.branch }} - - name: Restore cached build artifacts - uses: actions/cache@v3 - with: - path: | - /github/home/.cache - /github/home/.pnpm-store - ./node_modules - ./packages - key: ${{ github.sha }}-base:18-test-lint - - - uses: pnpm/action-setup@v2.2.4 + - uses: pnpm/action-setup@v2.4.0 - name: Use Node.js 18 - uses: actions/setup-node@v3 + uses: actions/setup-node@v3.7.0 with: node-version: 18.x cache: pnpm + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Restore cached build artifacts + uses: actions/cache/restore@v3.3.1 + with: + path: ./packages/**/dist + key: ${{ github.sha }}-base:18-test-lint + - name: Test run: pnpm test @@ -77,29 +72,28 @@ jobs: runs-on: ubuntu-latest needs: install steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v3.5.3 with: repository: n8n-io/n8n ref: ${{ inputs.branch }} - - name: Restore cached build artifacts - uses: actions/cache@v3 - with: - path: | - /github/home/.cache - /github/home/.pnpm-store - ./node_modules - ./packages - key: ${{ github.sha }}-base:18-test-lint - - - uses: pnpm/action-setup@v2.2.4 + - uses: pnpm/action-setup@v2.4.0 - name: Use Node.js 18 - uses: actions/setup-node@v3 + uses: actions/setup-node@v3.7.0 with: node-version: 18.x cache: pnpm + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Restore cached build artifacts + uses: actions/cache/restore@v3.3.1 + with: + path: ./packages/**/dist + key: ${{ github.sha }}-base:18-test-lint + - name: Fetch base branch for `git diff` run: git fetch origin ${{ github.event.pull_request.base.ref }}:${{ github.event.pull_request.base.ref }} diff --git a/.github/workflows/docker-base-image.yml b/.github/workflows/docker-base-image.yml index 098da1d6b7..157744f6cb 100644 --- a/.github/workflows/docker-base-image.yml +++ b/.github/workflows/docker-base-image.yml @@ -17,22 +17,22 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v3.5.3 - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v2.2.0 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v2.9.1 - name: Login to DockerHub - uses: docker/login-action@v2 + uses: docker/login-action@v2.2.0 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - name: Build - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v4.1.1 with: context: ./docker/images/n8n-base build-args: | diff --git a/.github/workflows/docker-images-nightly.yml b/.github/workflows/docker-images-nightly.yml index 8d6db7dbe5..f804c10883 100644 --- a/.github/workflows/docker-images-nightly.yml +++ b/.github/workflows/docker-images-nightly.yml @@ -47,19 +47,19 @@ jobs: shell: bash - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v3.5.3 with: repository: ${{ github.event.inputs.repository || 'n8n-io/n8n' }} ref: ${{ github.event.inputs.branch || 'master' }} - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v2.2.0 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v2.9.1 - name: Login to DockerHub - uses: docker/login-action@v2 + uses: docker/login-action@v2.2.0 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} @@ -70,7 +70,7 @@ jobs: shell: bash - name: Build and push - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v4.1.1 with: context: . file: ./docker/images/n8n-custom/Dockerfile diff --git a/.github/workflows/docker-images.yml b/.github/workflows/docker-images.yml index ce80e69188..1861ab54c6 100644 --- a/.github/workflows/docker-images.yml +++ b/.github/workflows/docker-images.yml @@ -9,33 +9,33 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v3.5.3 - name: Get the version id: vars run: echo ::set-output name=tag::$(echo ${GITHUB_REF:14}) - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v2.2.0 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v2.9.1 - name: Login to GitHub Container Registry - uses: docker/login-action@v2 + uses: docker/login-action@v2.2.0 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Login to DockerHub - uses: docker/login-action@v2 + uses: docker/login-action@v2.2.0 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - name: Build - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v4.1.1 with: context: ./docker/images/n8n build-args: | diff --git a/.github/workflows/e2e-reusable.yml b/.github/workflows/e2e-reusable.yml index 8baa3f0da9..c7de60e416 100644 --- a/.github/workflows/e2e-reusable.yml +++ b/.github/workflows/e2e-reusable.yml @@ -76,7 +76,7 @@ jobs: image: cypress/${{ inputs.run-env }} options: --user 1001 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v3.5.3 with: repository: n8n-io/n8n ref: ${{ inputs.branch }} @@ -87,23 +87,13 @@ jobs: git fetch origin pull/${{ inputs.pr_number }}/head git checkout FETCH_HEAD - - name: Setup pnpm - uses: pnpm/action-setup@v2.2.4 - with: - run_install: true + - uses: pnpm/action-setup@v2.4.0 - - name: Cache pnpm modules - uses: actions/cache@v3 - with: - path: | - /github/home/.cache - /github/home/.pnpm-store - ./node_modules - ./packages - key: ${{ inputs.cache-key }} + - name: Install dependencies + run: pnpm install --frozen-lockfile - name: Cypress build - uses: cypress-io/github-action@v5 + uses: cypress-io/github-action@v5.8.3 with: # Disable running of tests within install job runTests: false @@ -113,6 +103,15 @@ jobs: - name: Cypress install run: pnpm cypress:install + - name: Cache build artifacts + uses: actions/cache/save@v3.3.1 + with: + path: | + /github/home/.cache + /github/home/.pnpm-store + ./packages/**/dist + key: ${{ inputs.cache-key }} + testing: runs-on: ubuntu-latest container: @@ -126,7 +125,7 @@ jobs: # running the same tests multiple times containers: ${{ fromJSON( inputs.spec == 'e2e/*' && inputs.containers || '[1]' ) }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v3.5.3 with: repository: n8n-io/n8n ref: ${{ inputs.branch }} @@ -137,21 +136,22 @@ jobs: git fetch origin pull/${{ inputs.pr_number }}/head git checkout FETCH_HEAD - - name: Setup pnpm - uses: pnpm/action-setup@v2.2.4 + - uses: pnpm/action-setup@v2.4.0 - name: Restore cached pnpm modules - uses: actions/cache@v3 + uses: actions/cache/restore@v3.3.1 with: path: | /github/home/.cache /github/home/.pnpm-store - ./node_modules - ./packages + ./packages/**/dist key: ${{ inputs.cache-key }} + - name: Install dependencies + run: pnpm install --frozen-lockfile + - name: Cypress run - uses: cypress-io/github-action@v5 + uses: cypress-io/github-action@v5.8.3 with: install: false start: pnpm start diff --git a/.github/workflows/release-create-pr.yml b/.github/workflows/release-create-pr.yml index 7617a35476..1cd6f9992d 100644 --- a/.github/workflows/release-create-pr.yml +++ b/.github/workflows/release-create-pr.yml @@ -30,13 +30,13 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v3.5.3 with: fetch-depth: 0 ref: ${{ github.event.inputs.base-branch }} - - uses: pnpm/action-setup@v2.2.4 - - uses: actions/setup-node@v3 + - uses: pnpm/action-setup@v2.4.0 + - uses: actions/setup-node@v3.7.0 with: node-version: 18.x diff --git a/.github/workflows/release-publish.yml b/.github/workflows/release-publish.yml index 6882b4a9bb..22284e5155 100644 --- a/.github/workflows/release-publish.yml +++ b/.github/workflows/release-publish.yml @@ -19,12 +19,12 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v3.5.3 with: fetch-depth: 0 - - uses: pnpm/action-setup@v2.2.4 - - uses: actions/setup-node@v3 + - uses: pnpm/action-setup@v2.4.0 + - uses: actions/setup-node@v3.7.0 with: node-version: 18.x cache: 'pnpm' diff --git a/.github/workflows/release-push-to-channel.yml b/.github/workflows/release-push-to-channel.yml index 8ab1e6153c..5e4100c29a 100644 --- a/.github/workflows/release-push-to-channel.yml +++ b/.github/workflows/release-push-to-channel.yml @@ -22,7 +22,7 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 5 steps: - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v3.7.0 with: node-version: 18.x - run: | @@ -34,7 +34,7 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 5 steps: - - uses: docker/login-action@v2 + - uses: docker/login-action@v2.2.0 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} diff --git a/.github/workflows/test-workflows.yml b/.github/workflows/test-workflows.yml index 78fa52e28a..27b8c622ee 100644 --- a/.github/workflows/test-workflows.yml +++ b/.github/workflows/test-workflows.yml @@ -13,21 +13,21 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v3.5.3 with: path: n8n - name: Checkout workflows repo - uses: actions/checkout@v3 + uses: actions/checkout@v3.5.3 with: repository: n8n-io/test-workflows path: test-workflows - - uses: pnpm/action-setup@v2.2.4 + - uses: pnpm/action-setup@v2.4.0 with: - version: 8.6.1 + version: 8.6.12 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v3.7.0 with: node-version: 18.x cache: 'pnpm' @@ -44,7 +44,7 @@ jobs: - name: pnpm install and build working-directory: n8n run: | - pnpm install + pnpm install --frozen-lockfile pnpm --filter @n8n/client-oauth2 --filter n8n-workflow --filter n8n-core --filter n8n-nodes-base --filter n8n build shell: bash diff --git a/package.json b/package.json index c82a095bc3..b3b6c795b1 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "node": ">=18.10", "pnpm": ">=8.6" }, - "packageManager": "pnpm@8.6.1", + "packageManager": "pnpm@8.6.12", "scripts": { "preinstall": "node scripts/block-npm-install.js", "build": "turbo run build",