-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 976 Bytes
/
ci.yml
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
41
42
---
name: ci
on:
- push
jobs:
ci_job:
name: test
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
# docs: https://github.com/helm/kind-action
- name: Prepare kind cluster
uses: helm/kind-action@v1
with:
cluster_name: kubectl-envsubst
install_only: true
kubectl_version: "v1.31.1"
- name: Run unit tests
run: make test
- name: Generate coverage report
run: make test-cov
- name: Upload results to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
# Note: makefile stages: build/install/kind-setup/test-integration
- name: Run integration tests
run: make test-integration
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
install-only: true
- name: Check goreleaser
run: make snapshot