Skip to content

Commit

Permalink
ci: combine jobs into one
Browse files Browse the repository at this point in the history
  • Loading branch information
consideRatio committed Apr 5, 2024
1 parent facc364 commit 6dbaf51
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ on:
workflow_dispatch:

jobs:
render-dashboards:
render-lint-dashboards:
runs-on: ubuntu-22.04

strategy:
Expand Down Expand Up @@ -49,23 +49,6 @@ jobs:
jsonnet -J vendor --tla-code 'datasources=["prometheus-test"]' --output-file rendered-dashboards/`basename $file` $file
done
- name: Upload rendered dashboards
uses: actions/upload-artifact@v4
with:
name: rendered-dashboards-${{ github.run_attempt }}
path: ./rendered-dashboards

lint-dashboards:
runs-on: ubuntu-22.04
needs: [render-dashboards]

steps:
- name: Download rendered dashboards
uses: actions/download-artifact@v4
with:
name: rendered-dashboards-${{ github.run_attempt }}
path: ./rendered-dashboards

- name: Install dashboard-linter
run: |
go install github.com/grafana/dashboard-linter@latest
Expand Down

0 comments on commit 6dbaf51

Please sign in to comment.