-
Notifications
You must be signed in to change notification settings - Fork 2
62 lines (53 loc) · 1.16 KB
/
testing.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: testing
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
name: Build
steps:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Checkout code
uses: actions/checkout@v3
- name: Build server
run: make build
linter:
runs-on: ubuntu-latest
name: Run linter
needs:
- build
steps:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Checkout code
uses: actions/checkout@v3
- name: Run linter
run: make lint
test:
runs-on: ubuntu-latest
name: Run tests
needs:
- linter
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Run test
run: |
export PORT=5000
export APP_ENV=development
export MONGO_DB_PORT=27017
export MONGO_DB_NAME=Example
export MONGO_DB_URL=http://127.0.0.1
export FIREBASE_CRED_PATH=./example.json
export ANDROID_CHANNEL_NAME=example
make test