ebcc8b7ca9
The actions/setup-node@v6.4.0 upgrade stopped auto-shimming yarn onto PATH via corepack. The yarn-plugin test spawns yarn via Node's child_process.spawn() which does a raw PATH lookup, causing ENOENT failures. Adding corepack: true ensures the yarn shim is available. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Fredrik Adelöw <freben@gmail.com>
92 lines
2.9 KiB
YAML
92 lines
2.9 KiB
YAML
name: E2E Linux
|
|
on:
|
|
# NOTE: If you change these you must update verify_e2e-linux-noop.yml as well
|
|
pull_request:
|
|
paths-ignore:
|
|
- '.changeset/**'
|
|
- 'contrib/**'
|
|
- 'docs/**'
|
|
- 'microsite/**'
|
|
- 'beps/**'
|
|
push:
|
|
branches: [master]
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
services:
|
|
postgres:
|
|
image: postgres:14
|
|
env:
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: postgres
|
|
POSTGRES_DB: postgres
|
|
ports:
|
|
- 5432/tcp
|
|
# needed because the postgres container does not provide a healthcheck
|
|
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
node-version: [22.x, 24.x]
|
|
|
|
env:
|
|
CI: true
|
|
NODE_OPTIONS: --max-old-space-size=8192 --no-node-snapshot --experimental-vm-modules
|
|
|
|
name: E2E Linux ${{ matrix.node-version }}
|
|
steps:
|
|
- name: Harden Runner
|
|
uses: step-security/harden-runner@58077d3c7e43986b6b15fba718e8ea69e387dfcc # v2.15.1
|
|
with:
|
|
egress-policy: audit
|
|
|
|
# Store the PR number for the Sync Pull Requests workflow
|
|
- name: Save PR context
|
|
if: matrix.node-version == '22.x' && github.event_name == 'pull_request'
|
|
run: |
|
|
mkdir -p ./context
|
|
echo "${{ github.event.pull_request.number }}" > ./context/pr-number
|
|
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
if: matrix.node-version == '22.x' && github.event_name == 'pull_request'
|
|
with:
|
|
name: pr-context
|
|
path: context/
|
|
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
|
|
- name: Configure Git
|
|
run: |
|
|
git config --global user.email noreply@backstage.io
|
|
git config --global user.name 'GitHub e2e user'
|
|
|
|
- name: use node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
registry-url: https://registry.npmjs.org/ # Needed for auth
|
|
corepack: true
|
|
- name: yarn install
|
|
uses: backstage/actions/yarn-install@2cd6978b476cbdc39fec48346f8b6ca13199dd6a # v0.7.8
|
|
with:
|
|
cache-prefix: ${{ runner.os }}-v${{ matrix.node-version }}
|
|
|
|
- run: yarn tsc
|
|
- run: yarn backstage-cli repo build
|
|
- name: run E2E test
|
|
run: |
|
|
sudo sysctl fs.inotify.max_user_watches=524288
|
|
yarn e2e-test run
|
|
env:
|
|
BACKSTAGE_TEST_DISABLE_DOCKER: 1
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: postgres
|
|
POSTGRES_HOST: localhost
|
|
POSTGRES_PORT: ${{ job.services.postgres.ports[5432] }}
|