Skip to content

Commit

Permalink
Merge pull request #919 from bonddim/workflows-update
Browse files Browse the repository at this point in the history
workflows update
  • Loading branch information
povilasv authored Apr 29, 2024
2 parents 04717b1 + 55113e7 commit 6b40732
Show file tree
Hide file tree
Showing 3 changed files with 39 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
73 changes: 27 additions & 46 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,51 +3,32 @@ 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
- uses: actions/setup-go@v5
with:
go-version-file: scripts/go.mod
cache-dependency-path: scripts/go.sum
- run: ${{ matrix.run }}

0 comments on commit 6b40732

Please sign in to comment.