-
Notifications
You must be signed in to change notification settings - Fork 6
45 lines (44 loc) · 1.11 KB
/
test.yml
File metadata and controls
45 lines (44 loc) · 1.11 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
name: Build
on:
pull_request:
push:
branches:
- main
jobs:
functional_test:
name: "Test - Functional"
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: functional
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: actions/cache@v4
with:
path: ".npm-cache"
key: ${{ runner.os }}-node-modules-${{ hashFiles('package-lock.json') }}
- run: npm i
- run: npm ci --cache .npm-cache --prefer-offline
# - run: npm run test:ci
oop_test:
name: "Test - Object Oriented"
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: oop
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: actions/cache@v4
with:
path: ".npm-cache"
key: ${{ runner.os }}-node-modules-${{ hashFiles('package-lock.json') }}
- run: npm ci --cache .npm-cache --prefer-offline
- run: npm run test:ci