-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 890 Bytes
/
backend.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
name: flamingo-armond backend CI
on:
push:
branches:
- master
paths:
- 'backend/**'
jobs:
backend:
name: backend CI
runs-on: ubuntu-22.04
environment: Test
steps:
- name: Set up Go 1.22.5
uses: actions/setup-go@v5
with:
go-version: '1.22.5'
- name: Checkout code
uses: actions/checkout@v4
- name: Install Goose
run: go install github.com/pressly/goose/v3/cmd/goose@latest
# Alternatively, install using go install
- name: Set up gotestfmt
run: go install github.com/gotesttools/gotestfmt/v2/cmd/gotestfmt@latest
- name: Fetch dependant Go modules
run: |-
go get -v -t -d ./...
working-directory: ./backend
- name: Test code
run: |-
go test -json -v ./...
working-directory: ./backend