Skip to content

Commit

Permalink
split matrix call into separate workflow calls with unique workflow n…
Browse files Browse the repository at this point in the history
…ames
  • Loading branch information
addyess committed Dec 5, 2023
1 parent 5d483cf commit fd1a225
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
name: Tests
name: Tests K8s Worker

on:
pull_request:

jobs:
unit-tests:
strategy:
matrix:
charm: ["k8s", "k8s-worker"]
uses: canonical/operator-workflows/.github/workflows/test.yaml@main
secrets: inherit
with:
self-hosted-runner: false
working-directory: ./charms/${{ matrix.charm }}/
working-directory: ./charms/k8s-worker/
12 changes: 12 additions & 0 deletions .github/workflows/tests-k8s.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Tests K8s

on:
pull_request:

jobs:
unit-tests:
uses: canonical/operator-workflows/.github/workflows/test.yaml@main
secrets: inherit
with:
self-hosted-runner: false
working-directory: ./charms/k8s/

0 comments on commit fd1a225

Please sign in to comment.