forked from kopia/kopia
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 848 Bytes
/
race-detector.yml
File metadata and controls
33 lines (33 loc) · 848 Bytes
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
name: Race Detector
on: [push,pull_request]
jobs:
integration_tests:
name: Integration Tests
runs-on: ubuntu-latest
steps:
- name: Set up Go.
uses: actions/setup-go@v2
with:
go-version: ^1.16
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Integration Tests
run: make -j2 ci-integration-tests INTEGRATION_TEST_RACE_FLAGS=-race
unit_tests:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- name: Set up Go.
uses: actions/setup-go@v2
with:
go-version: ^1.16
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Unit Tests
run: make -j2 test UNIT_TEST_RACE_FLAGS=-race