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 tests2+
3+
on:4+
pull_request:5+
branches:6+
- main7+
paths:8+
- '**.go'9+
push:10+
branches:11+
- main12+
paths:13+
- '**.go'14+
15+
jobs:16+
unit-tests:17+
runs-on: ubuntu-latest18+
steps:19+
- name: Create KinD cluster20+
uses: container-tools/kind-action@v121+
with:22+
registry: false23+
24+
- name: Set up Helm25+
uses: azure/setup-helm@v126+
with:27+
version: v3.7.128+
29+
# - run: helm repo add bitnami https://charts.bitnami.com/bitnami30+
31+
- uses: actions/checkout@v232+
with:33+
fetch-depth: 034+
35+
- uses: actions/setup-go@v236+
with:37+
go-version: 1.1738+
39+
- uses: actions/cache@v240+
with:41+
path: ~/go/pkg/mod42+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}43+
restore-keys: |44+
${{ runner.os }}-go-45+
46+
- name: Install go modules47+
run: go mod download48+
49+
- name: Run tests50+
run: go test -race -coverpkg=./... -coverprofile=./tests.cov -v -covermode=atomic --tags=integration ./...51+
52+
- uses: codecov/[email protected]53+
with:54+
files: ./tests.cov55+
fail_ci_if_error: true.github/workflows/k8s-tests.ymldeleted
Loading diff…
.github/workflows/unit-tests.ymldeleted
Loading diff…
cmd/helmwave/main_test.gomodifiedView file
Loading diff…
go.modmodifiedView file
Loading diff…
pkg/action/build_test.gomodifiedView file
Loading diff…
pkg/helper/file_test.gomodifiedView file
Loading diff…
pkg/helper/helm_test.gomodifiedView file
Loading diff…
pkg/helper/http_test.gomodifiedView file
Loading diff…
pkg/log/log_test.gomodifiedView file
Loading diff…
pkg/parallel/parallel_test.gomodifiedView file
Loading diff…
pkg/plan/export_test.gomodifiedView file
Loading diff…
pkg/pubsub/pubsub_test.gomodifiedView file
Loading diff…
pkg/release/config_test.gomodifiedView file
Loading diff…
pkg/release/repo_test.gomodifiedView file
Loading diff…
pkg/release/values_test.gomodifiedView file
Loading diff…
pkg/template/config_test.gomodifiedView file
Loading diff…
pkg/template/extra_test.gomodifiedView file
Loading diff…
pkg/template/func_test.gomodifiedView file
Loading diff…
pkg/template/tpl2yml_test.gomodifiedView file
Loading diff…