chore: update aws change mapping #267
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
pull_request: | |
jobs: | |
changes: | |
runs-on: ubuntu-latest | |
# Required permissions | |
permissions: | |
pull-requests: read | |
outputs: | |
# Expose matched filters as job 'packages' output variable | |
charts: ${{ steps.filter.outputs.changes }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dorny/paths-filter@v3 | |
id: filter | |
with: | |
filters: | | |
argocd: charts/argocd/** | |
aws: charts/aws/** | |
azure: charts/azure/** | |
kubernetes: charts/kubernetes/** | |
mission-control: charts/mission-control/** | |
flux: charts/flux/** | |
mongo-atlas: charts/mongo-atlas/** | |
postgres: charts/postgres/** | |
prometheus: charts/prometheus/** | |
playbooks-kubernetes: charts/playbooks-kubernetes/** | |
playbooks-flux: charts/playbooks-flux/** | |
# Job to build and test each of modified packages | |
test: | |
needs: changes | |
strategy: | |
fail-fast: false | |
matrix: | |
# Parse JSON array containing names of all filters matching any of changed files | |
# e.g. ['package1', 'package2'] if both package folders contains changes | |
chart: ${{ fromJSON(needs.changes.outputs.charts) }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Helm | |
uses: azure/setup-helm@v1 | |
with: | |
version: v3.12.0 | |
- name: Create kind cluster | |
uses: helm/[email protected] | |
- name: Set up chart-testing | |
uses: helm/[email protected] | |
- run: ./test_charts.sh ${{matrix.chart}} | |
name: test | |
test-all: | |
needs: test | |
runs-on: ubuntu-latest | |
steps: | |
- run: echo "Done" |