mirror of
https://github.com/kopia/kopia.git
synced 2026-01-27 07:48:06 -05:00
37 lines
877 B
YAML
37 lines
877 B
YAML
name: Race Detector
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches: [ master ]
|
|
jobs:
|
|
integration_tests:
|
|
name: Integration Tests
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Set up Go.
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: ^1.17
|
|
id: go
|
|
- name: Check out code into the Go module directory
|
|
uses: actions/checkout@v2
|
|
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.17
|
|
id: go
|
|
- name: Check out code into the Go module directory
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Unit Tests
|
|
run: make -j2 test UNIT_TEST_RACE_FLAGS=-race
|