-
Notifications
You must be signed in to change notification settings - Fork 1
31 lines (31 loc) · 1.05 KB
/
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
name: test
on: push
jobs:
Test:
runs-on: ubuntu-latest
env:
AIDBOX_LICENSE: ${{ secrets.AIDBOX_LICENSE }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Prepare config
run: cp shared/src/config.local.ts shared/src/config.ts
- name: Prepare secrets
run: echo AIDBOX_LICENSE=${AIDBOX_LICENSE} > .env
- name: Install deps
run: yarn install --network-concurrency 1
- run: yarn compile
- name: Check types
run: yarn typecheck
- name: Create deps dir
run: mkdir -p zenproject/zen-packages && chmod 0777 zenproject/zen-packages
- name: Run aidbox
run: make up
- name: Show logs
if: ${{ failure() }}
run: docker-compose logs
- name: Run tests
run: yarn test --silent
- run: yarn build:web