-
Notifications
You must be signed in to change notification settings - Fork 135
56 lines (48 loc) · 1.3 KB
/
e2e-nightly-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: E2E Test Packages (Nightly)
on:
workflow_run:
workflows: ["Nightly Releases"]
types:
- completed
jobs:
e2e-nightly-test:
name: E2E app on Node ${{ matrix.node }}
runs-on: ubuntu-22.04
strategy:
matrix:
node: ['18', '20', '22']
defaults:
run:
working-directory: ./
steps:
- name: checkout
uses: actions/checkout@v4
- name: setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
# Install faust-scaffold-ts via npx create next app
- name: npx create next app
run: |
npx create-next-app@13 \
-e https://github.com/wpengine/faust-scaffold-ts/tree/main \
--use-npm \
e2e-app
- name: Install nightly versions
working-directory: e2e-app
run: |
npm install @faustwp/core@canary
npm install @faustwp/cli@canary
- name: copy env
working-directory: e2e-app
run: |
cp .env.local.sample .env.local
# Generate the schema to ensure no type collisions
- name: Generate Schema
working-directory: e2e-app
run: |
npm run generate
- name: Build
working-directory: e2e-app
run: |
npm run build