-
Notifications
You must be signed in to change notification settings - Fork 10
37 lines (35 loc) · 1.11 KB
/
frontend.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
name: Frontend
on: [push]
jobs:
frontend:
runs-on: ${{ matrix.os }}
timeout-minutes: 10
env:
CI: true
strategy:
matrix:
node-version: [12.x, 16.x, 17.x, 18.x]
os: [ubuntu-latest, windows-latest, macos-latest]
name: Build ${{ matrix.os }} + node ${{ matrix.node-version }}
steps:
- name: Checkout
uses: actions/checkout@master
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Configure Mix
run: |
cp tests/frontend/package.json ./
cp tests/frontend/appshell.mix.js ./
cp tests/frontend/print.mix.js ./
- name: Install Dependencies
run: npm i --legacy-peer-deps
- name: Theme Build
env:
NODE_OPTIONS: ${{ matrix.node-version == '17.x' && '--openssl-legacy-provider' || '' }}
run: npm run appshell
- name: Print Build
env:
NODE_OPTIONS: ${{ matrix.node-version == '17.x' && '--openssl-legacy-provider' || '' }}
run: npm run print