Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Pokom committed Jan 30, 2025
1 parent 8f95ed0 commit 3bf9f3a
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,33 +14,22 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- uses: ./.github/actions/setup-goversion

- name: Build
run: go build -v ./...

- name: Lint
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # 6.1.1
with:
version: v1.56

- name: Test
run: go test -v ./...
check-for-doc-changes:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2
- name: Install make
run: sudo apt-get update && sudo apt-get install -y make
shell: bash
- name: Regenerate Helm Docs
run: |
make helm > /dev/null # we don't actually need to output, just the results
- name: Check for Dashboards Drift
run:
go run ./cloudcost-exporter-dashboards/cmd/check-dashboards/main.go --mode=files
if ! git diff --exit-code; then
echo "Helm docs are out of date. Please run 'make -C deploy/helm docs' and commit the changes."
echo "Dashboards are out of sync. Please run 'make build-dashboards' and commit the changes."
exit 1
fi
shell: bash


0 comments on commit 3bf9f3a

Please sign in to comment.