Skip to content

Commit

Permalink
feat: add helm tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TrayserCassa committed Jan 8, 2025
1 parent 02a2567 commit 061ec6a
Showing 1 changed file with 51 additions and 20 deletions.
71 changes: 51 additions & 20 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,68 @@ name: Lint

on:
pull_request:
paths:
- '**.go'
# paths:
# - '**.go'

permissions:
contents: read
pull-requests: read
checks: write

jobs:
golangci:
name: golangci
# golangci:
# name: golangci
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-go@v5
# with:
# go-version: stable
# - name: golangci-lint
# uses: golangci/golangci-lint-action@v6
# with:
# version: v1.60
# args: --timeout=8m --verbose
#
# go-test:
# name: go test
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - name: Setup Go
# uses: actions/setup-go@v5
# with:
# check-latest: true
# - name: Display Go version
# run: go test ./...

test-on-cluster:
name: Cluster test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
- name: Checkout
uses: actions/checkout@v3
with:
go-version: stable
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
fetch-depth: 0

- name: Set up Helm
uses: azure/[email protected]
with:
version: v1.60
args: --timeout=8m --verbose
version: v3.16.4

go-test:
name: go test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
- uses: actions/setup-python@v5
with:
python-version: '3.x'
check-latest: true
- name: Display Go version
run: go test ./...

- name: Set up chart-testing
uses: helm/[email protected]

- name: Create k8s Kind Cluster
uses: helm/kind-action@v1

- name: Run chart-testing (install)
run: |
make helm path=test version=99.99.99
cd test
ct install --target-branch ${{ github.event.repository.default_branch }}

0 comments on commit 061ec6a

Please sign in to comment.