Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
facchettos committed Feb 9, 2024
1 parent f6f99e0 commit c397211
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 58 deletions.
26 changes: 17 additions & 9 deletions .github/workflows/matrix.yaml
Original file line number Diff line number Diff line change
@@ -1,31 +1,39 @@
name: Compatibility Matrix
name: Matric compat

on:
release:
types: [created]
pull_request:
branches:
- main
paths:
- "**.go"
- "!test/**" # exclude changes in e2e tests
- ".github/workflows/unit-tests.yaml"
- "hack/test.sh"
- "charts/**"

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
check-if-matrix-is-up-to-date:
name: matrix job
runs-on: ubuntu-latest
name: Execute all go tests
runs-on: ubuntu-22.04
steps:
- name: Checkout
- name: Set up Go 1.21
uses: actions/setup-go@v5
with:
go-version: "1.21"
cache: false
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: regenerate the table
run: |
go run hack/compat-matrix/main.go docs/pages/deploying-vclusters/compat-matrix
- name: Execute unit tests
run: go run hack/compat-matrix/main.go docs/pages/deploying-vclusters/compat-matrix.mdx
- name: commit change if needed
run: |
git diff --quiet && git diff --staged --quiet || git commit -am 'updated compatibility matrix'
- name: Push changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TO:KEN }}
run: git push

49 changes: 0 additions & 49 deletions .github/workflows/unit-tests-2.yaml

This file was deleted.

0 comments on commit c397211

Please sign in to comment.