fix(core): Missing pairing info (#7326) #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Master | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
install-and-build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
strategy: | |
matrix: | |
node-version: [18.x, 20.5] | |
steps: | |
- uses: actions/[email protected] | |
- uses: pnpm/[email protected] | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/[email protected] | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: pnpm | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Build | |
run: pnpm build | |
- name: Cache build artifacts | |
uses: actions/cache/[email protected] | |
with: | |
path: ./packages/**/dist | |
key: ${{ github.sha }}-base:${{ matrix.node-version }}-test-lint | |
unit-test: | |
name: Unit tests | |
uses: ./.github/workflows/units-tests-reusable.yml | |
needs: install-and-build | |
strategy: | |
matrix: | |
node-version: [18.x, 20.5] | |
with: | |
ref: ${{ inputs.branch }} | |
nodeVersion: ${{ matrix.node-version }} | |
cacheKey: ${{ github.sha }}-base:${{ matrix.node-version }}-test-lint | |
lint: | |
name: Lint changes | |
runs-on: ubuntu-latest | |
needs: install-and-build | |
strategy: | |
matrix: | |
node-version: [18.x, 20.5] | |
steps: | |
- uses: actions/[email protected] | |
with: | |
repository: n8n-io/n8n | |
ref: ${{ inputs.branch }} | |
- uses: pnpm/[email protected] | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/[email protected] | |
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 | |
run: pnpm lint | |
notify-on-failure: | |
name: Notify Slack on failure | |
runs-on: ubuntu-latest | |
needs: [unit-test, lint] | |
steps: | |
- name: Notify Slack on failure | |
uses: act10ns/[email protected] | |
if: failure() | |
with: | |
status: ${{ job.status }} | |
channel: '#updates-build-alerts' | |
webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }} | |
message: Master branch (build or test or lint) failed (${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) |