Skip to content

Commit a1d247f

Browse files
author
Lukas Holzer
authored
feat: make build-info browser compatible (#4869)
* feat: make build-info browser compatible * chore: update pipeline * chore: rename e2e test pattern to not collide with vitest * chore: make all tests passing 🎉 * chore: update fetch depth * chore: fix e2e tests * chore: fix on node 14 * chore: make workspace packages relative paths * chore: some updates * chore: fix formatting * chore: fix tests on windows * chore: remove unused packages * chore: last windows fix
1 parent 26553fb commit a1d247f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+3133
-886
lines changed

.github/workflows/workflow.yml

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,46 @@ on:
66
pull_request:
77
types: [opened, synchronize, reopened]
88
jobs:
9+
e2e:
10+
runs-on: ubuntu-latest
11+
timeout-minutes: 60
12+
steps:
13+
# Sets an output parameter if this is a release PR
14+
- name: Check for release
15+
id: release-check
16+
# For windows we have to use $env:
17+
run: |-
18+
echo "IS_RELEASE=true" >> $GITHUB_OUTPUT
19+
echo "IS_RELEASE=true" >> $env:GITHUB_OUTPUT
20+
if: ${{ startsWith(github.head_ref, 'release-') }}
21+
- uses: actions/checkout@v3
22+
with:
23+
fetch-depth: 0
24+
if: ${{ !steps.release-check.outputs.IS_RELEASE }}
25+
- uses: nrwl/nx-set-shas@v3
26+
if: ${{ !steps.release-check.outputs.IS_RELEASE }}
27+
- uses: actions/setup-node@v3
28+
with:
29+
node-version: 18
30+
if: ${{ !steps.release-check.outputs.IS_RELEASE }}
31+
- name: Install dependencies
32+
run: npm ci
33+
if: ${{ !steps.release-check.outputs.IS_RELEASE }}
34+
- name: Install Playwright Browsers
35+
run: npx playwright install --with-deps
36+
if: ${{ !steps.release-check.outputs.IS_RELEASE }}
37+
- name: test
38+
run: npx nx affected --target=e2e
39+
if: ${{ !steps.release-check.outputs.IS_RELEASE }}
40+
- uses: actions/upload-artifact@v3
41+
if: always()
42+
with:
43+
name: playwright-report
44+
path: playwright-report/
45+
retention-days: 30
946
test:
1047
runs-on: ${{ matrix.os }}
11-
timeout-minutes: 20
48+
timeout-minutes: 30
1249
strategy:
1350
matrix:
1451
os: [ubuntu-latest, macOS-latest, windows-latest]
@@ -51,7 +88,7 @@ jobs:
5188
uses: nick-fields/retry@v2
5289
if: ${{ !steps.release-check.outputs.IS_RELEASE }}
5390
with:
54-
timeout_minutes: 15
91+
timeout_minutes: 20
5592
max_attempts: 3
5693
retry_on: error
5794
command: npx nx affected --target=test:ci --exclude=@netlify/build --parallel=3

0 commit comments

Comments
 (0)