Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

workflows update #919

Merged
merged 2 commits into from
Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}
Loading