-
Notifications
You must be signed in to change notification settings - Fork 9
41 lines (32 loc) · 950 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
38
39
40
41
# Run MRjs testing
name: npm run test
on:
workflow_dispatch:
push:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
# needs: build # todo
steps:
- uses: actions/checkout@v4
# todo - run the npm install with a dockerfile setup instead of pure
# install but not important to do right now since install isnt too long
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Install Dependencies
run: |
npm install
# todo - have a way to run off a saved build image or state of the previous action instead of
# redoing the build every time since that's not-scalable
#
# will do after getting testing up and running
- name: 👷 Build
run: npm run build
- name: 👷 Test
run: npm run test