-
Notifications
You must be signed in to change notification settings - Fork 4
45 lines (43 loc) · 1.13 KB
/
main.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
name: CI
on: [push]
jobs:
lint:
runs-on: ubuntu-latest
name: Run linting for all packages
steps:
- uses: actions/checkout@v3
- name: install node v16
uses: actions/setup-node@v3
with:
node-version: 16
- uses: bahmutov/npm-install@v1
- run: yarn lint
run-api-tests:
runs-on: ubuntu-latest
name: API Tests
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: "16"
- run: yarn install --immutable
- name: Run Jest Tests
run: yarn packages/api test
build-frontend-image:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- run: yarn install --immutable
- name: Build Docker image for frontend
run: yarn frontend:docker:build
build-backend-image:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- run: yarn install --immutable
- name: Build Docker image for backend
run: yarn backend:docker:build