-
-
Notifications
You must be signed in to change notification settings - Fork 525
40 lines (40 loc) · 1.09 KB
/
unit_tests.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
name: "Build and Unit test"
on:
pull_request_target:
env:
HOMEBREW_NO_INSTALL_FROM_API:
jobs:
unit:
strategy:
fail-fast: false
matrix:
runners:
- ubuntu-latest
- macos-latest
- windows-latest
runs-on: ${{ matrix.runners }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: "${{ github.event.pull_request.head.sha }}"
- name: install dependencies
uses: ./.github/actions/install-dependencies
- name: Lint
if: ${{ runner.os != 'Windows' }}
uses: golangci/golangci-lint-action@v6
with:
args: --timeout 8m ./...
- name: Lint (limited on windows)
if: ${{ runner.os == 'Windows' }}
uses: golangci/golangci-lint-action@v6
with:
args: --timeout 8m ./cmd/telepresence/... ./integration_test/... ./pkg/...
- name: Build
run: make build
- name: Run tests
uses: nick-fields/retry/@v3
with:
max_attempts: 3
timeout_minutes: 12
command: make check-unit