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
16 changed files with 124 additions and 136 deletions

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