-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (40 loc) · 844 Bytes
/
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
46
name: test
on:
workflow_dispatch:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
name: Test
runs-on: ubuntu-latest
services:
postgres:
image: postgres:alpine
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: realworld
ports:
- 5432:5432
mongo:
image: mongo
env:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: root
ports:
- 27017:27017
steps:
- uses: actions/setup-go@v4
with:
go-version: '^1.21.0'
check-latest: true
- name: Check out code
uses: actions/checkout@v3
- name: Mod tidy
run: go mod tidy
- name: Test
run: make test_all