-
Notifications
You must be signed in to change notification settings - Fork 12
39 lines (35 loc) · 1.08 KB
/
main.yaml
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
name: Test suite
on:
pull_request:
branches: [main]
push:
branches: [main]
env:
NODE_VERSION: 16.x
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Test on ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
- name: install latest npm
run: |
npm install -g npm &&
npm --version &&
npm list -g --depth 0
- name: install dependencies
# have to force until vite-plugin-markdown accepts Vite 3
run: npm ci --force
- name: build
env:
VITE_FIREBASE_PROJECT_ID: ${{ secrets.VITE_FIREBASE_PROJECT_ID}}
VITE_FIREBASE_API_KEY: ${{ secrets.VITE_FIREBASE_API_KEY}}
VITE_FIREBASE_AUTH_DOMAIN: ${{ secrets.VITE_FIREBASE_AUTH_DOMAIN}}
FIREBASE_ADMIN_CLIENT_EMAIL: ${{ secrets.FIREBASE_ADMIN_CLIENT_EMAIL}}
FIREBASE_ADMIN_PRIVATE_KEY: ${{ secrets.FIREBASE_ADMIN_PRIVATE_KEY}}
run: npm run build
- name: headless tests
run: npm test