[pull] master from backstage:master #1565
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: 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/**' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres:12 | |
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: [20.x, 22.x] | |
env: | |
CI: true | |
NODE_OPTIONS: --max-old-space-size=8192 --no-node-snapshot | |
name: E2E Linux ${{ matrix.node-version }} | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 | |
with: | |
egress-policy: audit | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Configure Git | |
run: | | |
git config --global user.email [email protected] | |
git config --global user.name 'GitHub e2e user' | |
- name: use node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 | |
with: | |
node-version: ${{ matrix.node-version }} | |
registry-url: https://registry.npmjs.org/ # Needed for auth | |
- name: yarn install | |
uses: backstage/actions/yarn-install@25145dd4117d50e1da9330e9ed2893bc6b75373e # v0.6.15 | |
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] }} |