-
Notifications
You must be signed in to change notification settings - Fork 24
37 lines (34 loc) · 1021 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
name: Tests
on:
push:
branches:
- "**"
- "!master"
env:
INSEE_CONSUMER_KEY: ${{ secrets.INSEE_CONSUMER_KEY }}
INSEE_CONSUMER_SECRET: ${{ secrets.INSEE_CONSUMER_SECRET }}
jobs:
test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
cache: "npm"
node-version-file: package.json
- run: npm ci
env:
CYPRESS_INSTALL_BINARY: 0
- run: npm run build:workspaces
- run: npm run test:lint
- run: npm run test:workspaces
env:
CRISP_BASE_URL: https://api.crisp.chat
CRISP_IDENTIFIER: ${{ secrets.CRISP_IDENTIFIER }}
CRISP_KEY: ${{ secrets.CRISP_KEY }}
CRISP_PLUGIN_URN: ${{ secrets.CRISP_PLUGIN_URN }}
CRISP_USER_NICKNAME: ${{ secrets.CRISP_USER_NICKNAME }}
CRISP_WEBSITE_ID: ${{ secrets.CRISP_WEBSITE_ID }}
- run: npm run test:type-check
- run: npm run test:unit