-
-
Notifications
You must be signed in to change notification settings - Fork 122
62 lines (52 loc) · 1.5 KB
/
repo-checks.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Repo Checks
on: ["push", "pull_request"]
jobs:
check_code_quality:
name: Code Quality
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/setup-repo
- name: Linting
if: always()
run: yarn lint
- name: Formatting
if: always()
run: yarn check-formatting
# TODO: Add unit tests
# - name: Unit Tests
# if: always()
# run: yarn test
- name: Types
if: always()
run: yarn check-types
integration_tests:
name: Integration Tests
runs-on: ubuntu-latest
needs: check_code_quality
services:
typesense:
image: typesense/typesense:0.24.0
ports:
- 8108:8108
env:
TYPESENSE_DATA_DIR: /app/data
TYPESENSE_API_KEY: test-api-key
TYPESENSE_ENABLE_CORS: "true"
volumes:
- typesense-data:/app/data
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/setup-repo
- name: Cache Emulators
uses: actions/cache@v2
with:
path: /home/runner/.cache/firebase/emulators
key: ${{ runner.os }}-firebase-emulators-${{ hashFiles('~/.cache/firebase/emulators/**') }}
- name: Run Integration Tests
run: >
yarn test:integration-ci
tests/integration/testimony.test.ts
tests/integration/auth.test.ts
tests/integration/moderation.test.ts
tests/integration/profile.test.ts