-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (34 loc) · 1.13 KB
/
test.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
40
41
42
43
44
45
name: Pipeline for testing
on:
pull_request:
jobs:
test:
name: Course compose CI/CD testing
runs-on: ubuntu-latest
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
run_install: false
- name: Install turbo
run: pnpm install --global turbo@1.13.4
- name: Install jest
working-directory: ./apps/course-api
run: pnpm add --save-dev jest @types/jest ts-jest
- name: Setup Go 1.21.5
uses: actions/setup-go@v4
with:
go-version: "1.21.5"
- name: Generate Go ORM
working-directory: ./apps/reviews-api
run: pnpm run bootstrap:unix # triggers only in reviews-api
- name: Unit test
run: pnpm run unit
- name: Test
run: pnpm run test
- name: Integration test
run: pnpm run integration