Skip to content

Commit

Permalink
Update GitHub workflows
Browse files Browse the repository at this point in the history
- Enable dependabot for github actions
- Update actions/checkout to latest version
- Use matrix in ci workflow
  • Loading branch information
bonddim committed Apr 29, 2024
1 parent 04717b1 commit 72d9a71
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 47 deletions.
11 changes: 11 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: monthly
2 changes: 1 addition & 1 deletion .github/workflows/check-with-upstream.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
name: Check if KSM selectors are present on applicable metrics.
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
persist-credentials: false
- run: make --always-make check-selectors-ksm
69 changes: 23 additions & 46 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,51 +3,28 @@ on:
- push
- pull_request
jobs:
generate:
matrix:
runs-on: ubuntu-latest
name: Generate yaml
name: ${{ matrix.name }}
strategy:
fail-fast: false
matrix:
include:
- name: Alerts linter
run: make --always-make alerts-lint
- name: Generate yaml
run: make --always-make generate && git diff --exit-code
- name: Grafana dashboard linter
run: make --always-make dashboards-lint
- name: Jsonnet formatter
run: make --always-make fmt && git diff --exit-code
- name: Jsonnet linter
run: make --always-make jsonnet-lint
- name: Unit tests
run: make --always-make test

steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- run: make --always-make generate && git diff --exit-code
jsonnet-lint:
runs-on: ubuntu-latest
name: Jsonnet linter
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- run: make --always-make jsonnet-lint
dashboards-lint:
runs-on: ubuntu-latest
name: Grafana dashboard linter
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- run: make --always-make dashboards-lint
alerts-lint:
runs-on: ubuntu-latest
name: Alerts linter
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- run: make --always-make alerts-lint
fmt:
runs-on: ubuntu-latest
name: Jsonnet formatter
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- run: make --always-make fmt && git diff --exit-code
unit-tests:
runs-on: ubuntu-latest
name: Unit tests
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- run: make --always-make test
- uses: actions/checkout@v4
with:
persist-credentials: false
- run: ${{ matrix.run }}

0 comments on commit 72d9a71

Please sign in to comment.