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
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

View file

@ -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'

View file

@ -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

View file

@ -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:

View file

@ -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

View file

@ -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'

View file

@ -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 }}

View file

@ -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: |

View file

@ -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

View file

@ -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: |

View file

@ -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

View file

@ -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

View file

@ -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'

View file

@ -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 }}

View file

@ -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

View file

@ -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",