-
Notifications
You must be signed in to change notification settings - Fork 0
104 lines (80 loc) · 2.51 KB
/
webpack.yml
File metadata and controls
104 lines (80 loc) · 2.51 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
name: Nodejs Workflow with CRA
on:
push:
branches:
- dev
pull_request:
branches:
- master
paths-ignore:
- '**/README*'
env:
CI: ""
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [18.x, 20.x]
os: [macOS-latest, windows-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies (Project)
run: pnpm install
- name: Run all tests
run: pnpm test
- name: Generate template (Index)
run: node index.js --archive false examples/
- name: Echo Logs (Index)
if: always()
run: |
echo "Post motem"
cat logs/progress-$(date +'%Y-%m-%d').log
- name: Install build dependencies (Index)
working-directory: build
run: pnpm install
- name: Format code (Index)
working-directory: build
run: pnpm run format
- name: Build CRA (Index)
working-directory: build
run: pnpm run build
- name: Generate archive template (Local archive)
run: node index.js --archive false examples/index.zip
- name: Echo Logs (Local archive)
if: always()
run: |
echo "Post motem"
cat logs/progress-$(date +'%Y-%m-%d').log
- name: Install build dependencies (Local archive)
working-directory: build
run: pnpm install
- name: Format code (Local archive)
working-directory: build
run: pnpm run format
- name: Build CRA (Local archive)
working-directory: build
run: pnpm run build
- name: Generate template (Online archive)
run: node index.js --archive false https://github.com/technext/novena/releases/download/v.01/novena.zip
- name: Echo Logs (Online archive)
if: always()
run: |
echo "Post motem"
cat logs/progress-$(date +'%Y-%m-%d').log
- name: Install build dependencies (Online archive)
working-directory: build
run: pnpm install
- name: Format code (Online archive)
working-directory: build
run: pnpm run format
- name: Build CRA (Online archive)
working-directory: build
run: pnpm run build