Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
devpro committed Sep 5, 2024
1 parent 26ddea1 commit 02411ac
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,20 @@ permissions:
pull-requests: write

jobs:
changes:
runs-on: ubuntu-latest
permissions:
pull-requests: read
outputs:
apps: ${{ steps.filter.outputs.changes }}
steps:
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
game-2048: src/game-2048
cow-demo: src/cow-demo
rancher-helloworld: src/rancher-helloworld
code-check:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -65,9 +79,10 @@ jobs:
if: steps.list-changed.outputs.changed == 'true'
run: ct lint --target-branch ${{ github.event.repository.default_branch }}
image-scan:
needs: changes
strategy:
matrix:
app: [game-2048, cow-demo, rancher-helloworld]
app: ${{ fromJSON(needs.changes.outputs.apps) }}
runs-on: ubuntu-latest
steps:
- name: Checkout source code
Expand Down

0 comments on commit 02411ac

Please sign in to comment.