Skip to content

Commit

Permalink
ci: Fix versions of all external Github actions (no-changelog) (#6984)
Browse files Browse the repository at this point in the history
  • Loading branch information
netroy authored Aug 22, 2023
1 parent 3126a48 commit 9e3e298
Show file tree
Hide file tree
Showing 16 changed files with 124 additions and 136 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/check-documentation-urls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/check-pr-title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/check-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/checklist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
64 changes: 29 additions & 35 deletions .github/workflows/ci-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -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/[email protected]
- uses: pnpm/[email protected]

- 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/[email protected]
with:
path: ./packages/**/dist
key: ${{ github.sha }}-base:${{ matrix.node-version }}-test-lint

- name: Test
run: pnpm test

Expand All @@ -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/[email protected]
- uses: pnpm/[email protected]

- 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/[email protected]
with:
path: ./packages/**/dist
key: ${{ github.sha }}-base:${{ matrix.node-version }}-test-lint

- name: Lint
env:
CI_LINT_MASTER: true
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci-postgres-mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
64 changes: 29 additions & 35 deletions .github/workflows/ci-pull-requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -27,43 +27,38 @@ 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:
name: Unit tests
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/[email protected]
- uses: pnpm/[email protected]

- 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/[email protected]
with:
path: ./packages/**/dist
key: ${{ github.sha }}-base:18-test-lint

- name: Test
run: pnpm test

Expand All @@ -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/[email protected]
- uses: pnpm/[email protected]

- 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/[email protected]
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 }}

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/docker-base-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/docker-images-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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
Expand Down
Loading

0 comments on commit 9e3e298

Please sign in to comment.