-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (40 loc) · 1.07 KB
/
test.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
on: [push, pull_request]
name: Test
jobs:
unit-test:
strategy:
matrix:
# [1.15.x, 1.16.x]
go-version: [1.21.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@master
- name: Install Go
uses: actions/setup-go@master
with:
go-version: ${{ matrix.go-version }}
- name: Unit tests
run: go test -race ./...
integration-tests:
name: Integration tests
strategy:
matrix:
# [1.15.x, 1.16.x]
go-version: [ 1.21.x ]
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup Go
uses: actions/setup-go@master
- name: Setup Node
uses: actions/setup-node@master
- name: Install bruno
run: npm install -g @usebruno/cli
- name: Setup docker env
run: sh integration/setup_env.sh
- name: Run tests
run: cd integration && bru run --env local