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 17424cb commit 727dbaf
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,23 @@ jobs:
build-lint-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- 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 ./...
- 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 "Dashboards are out of sync. Please run 'make build-dashboards' and commit the changes."
exit 1
fi
shell: bash

- 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 ./...

0 comments on commit 727dbaf

Please sign in to comment.