Skip to content

Commit

Permalink
draft to test dashboard render
Browse files Browse the repository at this point in the history
  • Loading branch information
consideRatio committed Apr 5, 2024
1 parent 1e74695 commit ae0f1ae
Showing 1 changed file with 66 additions and 0 deletions.
66 changes: 66 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# This is a GitHub workflow defining a set of jobs with a set of steps.
# ref: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
#
name: Tests

on:
pull_request:
paths-ignore:
- "docs/**"
- ".github/workflows/*.yaml"
- "!.github/workflows/test.yaml"
push:
paths-ignore:
- "docs/**"
- ".github/workflows/*.yaml"
- "!.github/workflows/test.yaml"
branches-ignore:
- "dependabot/**"
- "pre-commit-ci-update-config"
tags: ["**"]
workflow_dispatch:

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

strategy:
fail-fast: false
matrix:
jsonnet-version: [latest]

steps:
- uses: actions/checkout@v4

# Based on https://github.com/zendesk/setup-jsonnet/blob/master/install-jsonnet.sh
- name: Install jsonnet
run: |
go install "github.com/google/go-jsonnet/cmd/jsonnet@${{ matrix.jsonnet-version }}"
go install "github.com/google/go-jsonnet/cmd/jsonnetfmt@${{ matrix.jsonnet-version }}"
go install "github.com/google/go-jsonnet/cmd/jsonnet-deps@${{ matrix.jsonnet-version }}"
go install "github.com/google/go-jsonnet/cmd/jsonnet-lint@${{ matrix.jsonnet-version }}"
echo "$HOME/go/bin" >> "$GITHUB_PATH"
- name: jsonnet --version
run: |
jsonnet --version
# - name: Upload rendered dashboards
# uses: actions/upload-artifact@v4
# with:
# name: dist-${{ github.run_attempt }}
# path: ./dist

lint-dashboards:
runs-on: ubuntu-22.04

steps:
# - name: Download built artifacts
# uses: actions/download-artifact@v4
# with:
# name: dist-${{ github.run_attempt }}
# path: ./dist

- run: |
echo duh

0 comments on commit ae0f1ae

Please sign in to comment.