New 🌊 wave for @helm

Commit 7b38cd90

7b38cd901921Merged

Svyatoslav Dumchenko <[email protected]> · 4 years ago · 20 files · +1 added · ~17 modified · -2 deleted

Description

Join all tests together in one action

Details

Commit
7b38cd901921
Parent
ba9d80e313ec

.github/workflows/go-tests.ymladdedView file

1+name: Run tests
2+
3+on:
4+ pull_request:
5+ branches:
6+ - main
7+ paths:
8+ - '**.go'
9+ push:
10+ branches:
11+ - main
12+ paths:
13+ - '**.go'
14+
15+jobs:
16+ unit-tests:
17+ runs-on: ubuntu-latest
18+ steps:
19+ - name: Create KinD cluster
20+ uses: container-tools/kind-action@v1
21+ with:
22+ registry: false
23+
24+ - name: Set up Helm
25+ uses: azure/setup-helm@v1
26+ with:
27+ version: v3.7.1
28+
29+# - run: helm repo add bitnami https://charts.bitnami.com/bitnami
30+
31+ - uses: actions/checkout@v2
32+ with:
33+ fetch-depth: 0
34+
35+ - uses: actions/setup-go@v2
36+ with:
37+ go-version: 1.17
38+
39+ - uses: actions/cache@v2
40+ with:
41+ path: ~/go/pkg/mod
42+ key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
43+ restore-keys: |
44+ ${{ runner.os }}-go-
45+
46+ - name: Install go modules
47+ run: go mod download
48+
49+ - name: Run tests
50+ run: go test -race -coverpkg=./... -coverprofile=./tests.cov -v -covermode=atomic --tags=integration ./...
51+
52+ - uses: codecov/[email protected]
53+ with:
54+ files: ./tests.cov
55+ fail_ci_if_error: true