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

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