File tree Expand file tree Collapse file tree 1 file changed +18
-8
lines changed Expand file tree Collapse file tree 1 file changed +18
-8
lines changed Original file line number Diff line number Diff line change 1
- # This is a basic workflow to help you get started with Actions
2
-
3
1
name : Tests
4
2
5
3
# Controls when the workflow will run
15
13
env :
16
14
NODE_OPTIONS : --max_old_space_size=16384
17
15
18
- # A workflow run is made up of one or more jobs that can run sequentially or in parallel
16
+ # This workflow contains two jobs called "test" and "build" and runs them in parallel
19
17
jobs :
20
- # This workflow contains a single job called "build"
21
- build :
22
- # The type of runner that the job will run on
18
+ test :
23
19
runs-on : ubuntu-latest
24
20
25
21
strategy :
26
22
matrix :
27
23
node-version : [18.x]
28
24
29
- # Steps represent a sequence of tasks that will be executed as part of the job
30
25
steps :
31
- # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
32
26
- uses : actions/checkout@v3
33
27
- name : Use Node.js ${{ matrix.node-version }}
34
28
uses : actions/setup-node@v3
39
33
- run : npm run lint
40
34
- run : sudo npx playwright install-deps
41
35
- run : npm run test
36
+
37
+ build :
38
+ runs-on : ubuntu-latest
39
+
40
+ strategy :
41
+ matrix :
42
+ node-version : [18.x]
43
+
44
+ steps :
45
+ - uses : actions/checkout@v3
46
+ - name : Use Node.js ${{ matrix.node-version }}
47
+ uses : actions/setup-node@v3
48
+ with :
49
+ node-version : ${{ matrix.node-version }}
50
+ cache : ' npm'
51
+ - run : npm ci
42
52
- run : npm run build:prod
You can’t perform that action at this time.
0 commit comments