forked from openscad/openscad-playground
-
Notifications
You must be signed in to change notification settings - Fork 9
37 lines (35 loc) · 920 Bytes
/
test.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: Test Build
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node: [
{"name": "LTS", "version": "lts/-2"},
{"name": "latest", "version": "latest"}
]
name: Node ${{ matrix.node.name }}
env:
CI: true
steps:
- uses: actions/checkout@v4
- name: Setup node ${{ matrix.node.name }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node.version }}
- run: npm install
- run: make public
- run: npm run build
- name: Archive production artifacts
uses: actions/upload-artifact@v4
with:
name: dist-node-${{ matrix.node.name }}
path: dist
retention-days: 30
- run: NODE_ENV=development npm run test:e2e
- run: NODE_ENV=production npm run test:e2e