-
Notifications
You must be signed in to change notification settings - Fork 19
47 lines (36 loc) · 1.03 KB
/
ci.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
name: Test Runner for videomail-client (CI)
on:
- push
- pull_request
jobs:
build-test-lint-check:
name: Build, Test, Prettier, Lint and Check
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Node.js via nvm
shell: bash --login {0}
run: |
nvm install --no-progress
echo "$(dirname $(nvm which node))" >> $GITHUB_PATH
- name: Install npm dependencies
run: npm ci
- name: Build assets
run: npm run build-prod
- name: Run prettier
run: npm run prettier
# TODO Restore later
# - name: Run linter
# run: npm run lint
- name: Audit (detect vulnerabilities)
run: npm run audit
# TODO Restore later
# - name: Run tests
# uses: coactions/setup-xvfb@v1
# with:
# run: npm run test
- name: Run Chromatic
uses: chromaui/action@latest
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}