-
Notifications
You must be signed in to change notification settings - Fork 134
56 lines (48 loc) · 1.29 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 Nightly Test
on:
workflow_run:
workflows: ["Nightly Releases"]
types:
- completed
jobs:
e2e-nightly-test:
name: E2E app on Node ${{ matrix.node }}
runs-on: ubuntu-latest
strategy:
matrix:
node: ['16', '18']
defaults:
run:
working-directory: ./
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
# Install faust-scaffold-ts via npx create next app
- name: npx create next app
run: |
npx create-next-app \
-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