-
Notifications
You must be signed in to change notification settings - Fork 14
50 lines (39 loc) · 1.33 KB
/
test_interface_portalicious.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
42
43
44
45
46
47
48
49
50
# See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
name: 'Test Interface: Portalicious'
on:
workflow_dispatch:
pull_request:
paths:
- '.github/workflows/test_interface_portalicious.yml'
- 'interfaces/Portalicious/**'
env:
interfacePath: 'interfaces/Portalicious'
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js version
uses: actions/setup-node@v4
with:
node-version-file: '${{ env.interfacePath }}/.node-version'
cache: 'npm'
cache-dependency-path: '${{ env.interfacePath }}/package-lock.json'
- name: Install
working-directory: ${{ env.interfacePath }}
run: 'npm ci --no-fund --no-audit'
- name: 'Test: Types'
working-directory: ${{ env.interfacePath }}
run: 'npm run typecheck'
- name: Lint
working-directory: ${{ env.interfacePath }}
run: 'npm run lint'
- name: 'Test: Deployment Configuration'
working-directory: ${{ env.interfacePath }}
run: |
cp -vf .env.example .env
npm run build:deployment-configuration
npm run test:deployment-configuration
- name: 'Test: Code'
working-directory: ${{ env.interfacePath }}
run: 'npm run test:ci'