ci: Fix versions of all external Github actions (no-changelog) (#6984)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2023-08-22 11:21:16 +02:00 committed by GitHub
parent 3126a48e3b
commit 9e3e298aca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 124 additions and 136 deletions

View file

@ -14,17 +14,17 @@ jobs:
timeout-minutes: 5 timeout-minutes: 5
steps: 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: with:
node-version: 18.x node-version: 18.x
cache: 'pnpm' cache: 'pnpm'
- name: Install dependencies - name: Install dependencies
run: pnpm install run: pnpm install --frozen-lockfile
- name: Build nodes-base - name: Build nodes-base
run: pnpm --filter @n8n/client-oauth2 --filter n8n-workflow --filter n8n-core --filter n8n-nodes-base build run: pnpm --filter @n8n/client-oauth2 --filter n8n-workflow --filter n8n-core --filter n8n-nodes-base build

View file

@ -16,11 +16,11 @@ jobs:
timeout-minutes: 5 timeout-minutes: 5
steps: steps:
- name: Check out branch - 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: with:
node-version: 18.x node-version: 18.x
cache: 'pnpm' cache: 'pnpm'

View file

@ -15,12 +15,12 @@ jobs:
continue-on-error: true continue-on-error: true
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v3.5.3
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Use Node.js - name: Use Node.js
uses: actions/setup-node@v3 uses: actions/setup-node@v3.7.0
with: with:
node-version: 18.x node-version: 18.x

View file

@ -14,7 +14,7 @@ jobs:
name: Checklist job name: Checklist job
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v1 uses: actions/checkout@v3.5.3
- name: Checklist - name: Checklist
uses: wyozi/contextual-qa-checklist-action@master uses: wyozi/contextual-qa-checklist-action@master
with: with:

View file

@ -16,12 +16,12 @@ jobs:
node-version: [18.x, 20.x] node-version: [18.x, 20.x]
steps: 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 }} - name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3 uses: actions/setup-node@v3.7.0
with: with:
node-version: ${{ matrix.node-version }} node-version: ${{ matrix.node-version }}
cache: pnpm cache: pnpm
@ -33,13 +33,9 @@ jobs:
run: pnpm build run: pnpm build
- name: Cache build artifacts - name: Cache build artifacts
uses: actions/cache@v3 uses: actions/cache/save@v3.3.1
with: with:
path: | path: ./packages/**/dist
/github/home/.cache
/github/home/.pnpm-store
./node_modules
./packages
key: ${{ github.sha }}-base:${{ matrix.node-version }}-test-lint key: ${{ github.sha }}-base:${{ matrix.node-version }}-test-lint
unit-test: unit-test:
@ -50,29 +46,28 @@ jobs:
matrix: matrix:
node-version: [18.x, 20.x] node-version: [18.x, 20.x]
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3.5.3
with: with:
repository: n8n-io/n8n repository: n8n-io/n8n
ref: ${{ inputs.branch }} ref: ${{ inputs.branch }}
- name: Restore cached build artifacts - uses: pnpm/action-setup@v2.4.0
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
- name: Use Node.js ${{ matrix.node-version }} - name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3 uses: actions/setup-node@v3.7.0
with: with:
node-version: ${{ matrix.node-version }} node-version: ${{ matrix.node-version }}
cache: pnpm 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 - name: Test
run: pnpm test run: pnpm test
@ -89,29 +84,28 @@ jobs:
matrix: matrix:
node-version: [18.x, 20.x] node-version: [18.x, 20.x]
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3.5.3
with: with:
repository: n8n-io/n8n repository: n8n-io/n8n
ref: ${{ inputs.branch }} ref: ${{ inputs.branch }}
- name: Restore cached build artifacts - uses: pnpm/action-setup@v2.4.0
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
- name: Use Node.js ${{ matrix.node-version }} - name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3 uses: actions/setup-node@v3.7.0
with: with:
node-version: ${{ matrix.node-version }} node-version: ${{ matrix.node-version }}
cache: pnpm 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 - name: Lint
env: env:
CI_LINT_MASTER: true CI_LINT_MASTER: true

View file

@ -16,11 +16,11 @@ jobs:
DB_POSTGRESDB_PASSWORD: password DB_POSTGRESDB_PASSWORD: password
steps: 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: with:
node-version: 18.x node-version: 18.x
cache: 'pnpm' cache: 'pnpm'

View file

@ -7,15 +7,15 @@ jobs:
name: Install & Build name: Install & Build
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3.5.3
with: with:
repository: n8n-io/n8n repository: n8n-io/n8n
ref: ${{ inputs.branch }} ref: ${{ inputs.branch }}
- uses: pnpm/action-setup@v2.2.4 - uses: pnpm/action-setup@v2.4.0
- name: Use Node.js 18 - name: Use Node.js 18
uses: actions/setup-node@v3 uses: actions/setup-node@v3.7.0
with: with:
node-version: 18.x node-version: 18.x
cache: pnpm cache: pnpm
@ -27,13 +27,9 @@ jobs:
run: pnpm build run: pnpm build
- name: Cache build artifacts - name: Cache build artifacts
uses: actions/cache@v3 uses: actions/cache/save@v3.3.1
with: with:
path: | path: ./packages/**/dist
/github/home/.cache
/github/home/.pnpm-store
./node_modules
./packages
key: ${{ github.sha }}-base:18-test-lint key: ${{ github.sha }}-base:18-test-lint
unit-test: unit-test:
@ -41,29 +37,28 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: install needs: install
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3.5.3
with: with:
repository: n8n-io/n8n repository: n8n-io/n8n
ref: ${{ inputs.branch }} ref: ${{ inputs.branch }}
- name: Restore cached build artifacts - uses: pnpm/action-setup@v2.4.0
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
- name: Use Node.js 18 - name: Use Node.js 18
uses: actions/setup-node@v3 uses: actions/setup-node@v3.7.0
with: with:
node-version: 18.x node-version: 18.x
cache: pnpm 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 - name: Test
run: pnpm test run: pnpm test
@ -77,29 +72,28 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: install needs: install
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3.5.3
with: with:
repository: n8n-io/n8n repository: n8n-io/n8n
ref: ${{ inputs.branch }} ref: ${{ inputs.branch }}
- name: Restore cached build artifacts - uses: pnpm/action-setup@v2.4.0
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
- name: Use Node.js 18 - name: Use Node.js 18
uses: actions/setup-node@v3 uses: actions/setup-node@v3.7.0
with: with:
node-version: 18.x node-version: 18.x
cache: pnpm 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` - name: Fetch base branch for `git diff`
run: git fetch origin ${{ github.event.pull_request.base.ref }}:${{ github.event.pull_request.base.ref }} run: git fetch origin ${{ github.event.pull_request.base.ref }}:${{ github.event.pull_request.base.ref }}

View file

@ -17,22 +17,22 @@ jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3.5.3
- name: Set up QEMU - name: Set up QEMU
uses: docker/setup-qemu-action@v2 uses: docker/setup-qemu-action@v2.2.0
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2 uses: docker/setup-buildx-action@v2.9.1
- name: Login to DockerHub - name: Login to DockerHub
uses: docker/login-action@v2 uses: docker/login-action@v2.2.0
with: with:
username: ${{ secrets.DOCKER_USERNAME }} username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }} password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build - name: Build
uses: docker/build-push-action@v4 uses: docker/build-push-action@v4.1.1
with: with:
context: ./docker/images/n8n-base context: ./docker/images/n8n-base
build-args: | build-args: |

View file

@ -47,19 +47,19 @@ jobs:
shell: bash shell: bash
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3.5.3
with: with:
repository: ${{ github.event.inputs.repository || 'n8n-io/n8n' }} repository: ${{ github.event.inputs.repository || 'n8n-io/n8n' }}
ref: ${{ github.event.inputs.branch || 'master' }} ref: ${{ github.event.inputs.branch || 'master' }}
- name: Set up QEMU - name: Set up QEMU
uses: docker/setup-qemu-action@v2 uses: docker/setup-qemu-action@v2.2.0
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2 uses: docker/setup-buildx-action@v2.9.1
- name: Login to DockerHub - name: Login to DockerHub
uses: docker/login-action@v2 uses: docker/login-action@v2.2.0
with: with:
username: ${{ secrets.DOCKER_USERNAME }} username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }} password: ${{ secrets.DOCKER_PASSWORD }}
@ -70,7 +70,7 @@ jobs:
shell: bash shell: bash
- name: Build and push - name: Build and push
uses: docker/build-push-action@v4 uses: docker/build-push-action@v4.1.1
with: with:
context: . context: .
file: ./docker/images/n8n-custom/Dockerfile file: ./docker/images/n8n-custom/Dockerfile

View file

@ -9,33 +9,33 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3.5.3
- name: Get the version - name: Get the version
id: vars id: vars
run: echo ::set-output name=tag::$(echo ${GITHUB_REF:14}) run: echo ::set-output name=tag::$(echo ${GITHUB_REF:14})
- name: Set up QEMU - name: Set up QEMU
uses: docker/setup-qemu-action@v2 uses: docker/setup-qemu-action@v2.2.0
- name: Set up Docker Buildx - 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 - name: Login to GitHub Container Registry
uses: docker/login-action@v2 uses: docker/login-action@v2.2.0
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.actor }} username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}
- name: Login to DockerHub - name: Login to DockerHub
uses: docker/login-action@v2 uses: docker/login-action@v2.2.0
with: with:
username: ${{ secrets.DOCKER_USERNAME }} username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }} password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build - name: Build
uses: docker/build-push-action@v4 uses: docker/build-push-action@v4.1.1
with: with:
context: ./docker/images/n8n context: ./docker/images/n8n
build-args: | build-args: |

View file

@ -76,7 +76,7 @@ jobs:
image: cypress/${{ inputs.run-env }} image: cypress/${{ inputs.run-env }}
options: --user 1001 options: --user 1001
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3.5.3
with: with:
repository: n8n-io/n8n repository: n8n-io/n8n
ref: ${{ inputs.branch }} ref: ${{ inputs.branch }}
@ -87,23 +87,13 @@ jobs:
git fetch origin pull/${{ inputs.pr_number }}/head git fetch origin pull/${{ inputs.pr_number }}/head
git checkout FETCH_HEAD git checkout FETCH_HEAD
- name: Setup pnpm - uses: pnpm/action-setup@v2.4.0
uses: pnpm/action-setup@v2.2.4
with:
run_install: true
- name: Cache pnpm modules - name: Install dependencies
uses: actions/cache@v3 run: pnpm install --frozen-lockfile
with:
path: |
/github/home/.cache
/github/home/.pnpm-store
./node_modules
./packages
key: ${{ inputs.cache-key }}
- name: Cypress build - name: Cypress build
uses: cypress-io/github-action@v5 uses: cypress-io/github-action@v5.8.3
with: with:
# Disable running of tests within install job # Disable running of tests within install job
runTests: false runTests: false
@ -113,6 +103,15 @@ jobs:
- name: Cypress install - name: Cypress install
run: pnpm 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: testing:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
@ -126,7 +125,7 @@ jobs:
# running the same tests multiple times # running the same tests multiple times
containers: ${{ fromJSON( inputs.spec == 'e2e/*' && inputs.containers || '[1]' ) }} containers: ${{ fromJSON( inputs.spec == 'e2e/*' && inputs.containers || '[1]' ) }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3.5.3
with: with:
repository: n8n-io/n8n repository: n8n-io/n8n
ref: ${{ inputs.branch }} ref: ${{ inputs.branch }}
@ -137,21 +136,22 @@ jobs:
git fetch origin pull/${{ inputs.pr_number }}/head git fetch origin pull/${{ inputs.pr_number }}/head
git checkout FETCH_HEAD git checkout FETCH_HEAD
- name: Setup pnpm - uses: pnpm/action-setup@v2.4.0
uses: pnpm/action-setup@v2.2.4
- name: Restore cached pnpm modules - name: Restore cached pnpm modules
uses: actions/cache@v3 uses: actions/cache/restore@v3.3.1
with: with:
path: | path: |
/github/home/.cache /github/home/.cache
/github/home/.pnpm-store /github/home/.pnpm-store
./node_modules ./packages/**/dist
./packages
key: ${{ inputs.cache-key }} key: ${{ inputs.cache-key }}
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Cypress run - name: Cypress run
uses: cypress-io/github-action@v5 uses: cypress-io/github-action@v5.8.3
with: with:
install: false install: false
start: pnpm start start: pnpm start

View file

@ -30,13 +30,13 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3.5.3
with: with:
fetch-depth: 0 fetch-depth: 0
ref: ${{ github.event.inputs.base-branch }} ref: ${{ github.event.inputs.base-branch }}
- 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: with:
node-version: 18.x node-version: 18.x

View file

@ -19,12 +19,12 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3.5.3
with: with:
fetch-depth: 0 fetch-depth: 0
- 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: with:
node-version: 18.x node-version: 18.x
cache: 'pnpm' cache: 'pnpm'

View file

@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 5 timeout-minutes: 5
steps: steps:
- uses: actions/setup-node@v3 - uses: actions/setup-node@v3.7.0
with: with:
node-version: 18.x node-version: 18.x
- run: | - run: |
@ -34,7 +34,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 5 timeout-minutes: 5
steps: steps:
- uses: docker/login-action@v2 - uses: docker/login-action@v2.2.0
with: with:
username: ${{ secrets.DOCKER_USERNAME }} username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }} password: ${{ secrets.DOCKER_PASSWORD }}

View file

@ -13,21 +13,21 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3.5.3
with: with:
path: n8n path: n8n
- name: Checkout workflows repo - name: Checkout workflows repo
uses: actions/checkout@v3 uses: actions/checkout@v3.5.3
with: with:
repository: n8n-io/test-workflows repository: n8n-io/test-workflows
path: test-workflows path: test-workflows
- uses: pnpm/action-setup@v2.2.4 - uses: pnpm/action-setup@v2.4.0
with: with:
version: 8.6.1 version: 8.6.12
- uses: actions/setup-node@v3 - uses: actions/setup-node@v3.7.0
with: with:
node-version: 18.x node-version: 18.x
cache: 'pnpm' cache: 'pnpm'
@ -44,7 +44,7 @@ jobs:
- name: pnpm install and build - name: pnpm install and build
working-directory: n8n working-directory: n8n
run: | 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 pnpm --filter @n8n/client-oauth2 --filter n8n-workflow --filter n8n-core --filter n8n-nodes-base --filter n8n build
shell: bash shell: bash

View file

@ -7,7 +7,7 @@
"node": ">=18.10", "node": ">=18.10",
"pnpm": ">=8.6" "pnpm": ">=8.6"
}, },
"packageManager": "pnpm@8.6.1", "packageManager": "pnpm@8.6.12",
"scripts": { "scripts": {
"preinstall": "node scripts/block-npm-install.js", "preinstall": "node scripts/block-npm-install.js",
"build": "turbo run build", "build": "turbo run build",