File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3030 uses : actions/setup-node@v4
3131 with :
3232 node-version : ${{ steps.nvmrc.outputs.node_version }}
33- cache : ' npm'
33+ cache : " npm"
3434
3535 - name : Cache node_modules
3636 id : cache-node-modules
6666 run : npm run lint
6767
6868 typecheck :
69- name : Type Check
69+ name : Typecheck
7070 needs : setup
7171 runs-on : ubuntu-latest
7272 steps :
8787 - name : Run type checking
8888 run : npm run typecheck
8989
90+ unit-test :
91+ name : Unit Test
92+ needs : setup
93+ runs-on : ubuntu-latest
94+ steps :
95+ - name : Checkout
96+ uses : actions/checkout@v4
97+
98+ - name : Setup Node.js
99+ uses : actions/setup-node@v4
100+ with :
101+ node-version : ${{ needs.setup.outputs.node-version }}
102+
103+ - name : Restore node_modules
104+ uses : actions/cache@v4
105+ with :
106+ path : node_modules
107+ key : node-modules-${{ needs.setup.outputs.cache-key }}
108+
109+ - name : Run unit testing
110+ run : npm run unit-test
111+
90112 release :
91113 name : Release
92- needs : [setup, lint, typecheck]
114+ needs : [setup, lint, typecheck, unit-test ]
93115 runs-on : ubuntu-latest
94116 permissions :
95117 contents : write
You can’t perform that action at this time.
0 commit comments