Skip to content

add clone-all script + fix gh repo list saml issue #572

add clone-all script + fix gh repo list saml issue

add clone-all script + fix gh repo list saml issue #572

Workflow file for this run

name: Test
concurrency:
group: test-on-${{ github.event_name }}-from-${{ github.ref_name }}
cancel-in-progress: true
on:
pull_request:
push:
branches:
- "pull-request/[0-9]+"
jobs:
check-event:
name: Check PR Event
runs-on: ubuntu-latest
outputs:
ok: ${{ steps.check_pr_event.outputs.ok }}
steps:
- id: check_pr_event
name: Check PR Event
shell: bash
run: |
[[ '${{ github.event_name }}' == 'push' && '${{ github.repository }}' == 'rapidsai/devcontainers' ]] || \
[[ '${{ github.event_name }}' == 'pull_request' && '${{ github.repository }}' != 'rapidsai/devcontainers' ]] \
&& echo "ok=true" | tee -a $GITHUB_OUTPUT \
|| echo "ok=false" | tee -a $GITHUB_OUTPUT;
validate-features-json:
if: needs.check-event.outputs.ok == 'true'
name: Validate features
needs: check-event
secrets: inherit
uses: ./.github/workflows/validate-features-json.yml
features-matrix:
name: Determine features matrix
needs: validate-features-json
runs-on: ubuntu-latest
outputs:
features: ${{ steps.matrix.outputs.features }}
scenarios: ${{ steps.matrix.outputs.scenarios }}
steps:
- name: Checkout ${{ github.repository }}
uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false
- name: Copy common scripts into features
uses: ./.github/actions/copy-common-scripts
- id: matrix
name: Determine features matrix
uses: ./.github/actions/feature-matrix
run-feature-integration-tests:
if: needs.features-matrix.outputs.features != '[]' || needs.features-matrix.outputs.scenarios != '[]'
name: Integration
needs: features-matrix
secrets: inherit
uses: ./.github/workflows/build-and-test-feature.yml
with:
name: "Test global scenarios"
args: "--global-scenarios-only"
run-feature-scenario-tests:
if: needs.features-matrix.outputs.scenarios != '[]'
name: Test scenarios
needs: features-matrix
secrets: inherit
uses: ./.github/workflows/build-and-test-feature.yml
strategy:
fail-fast: false
matrix:
feature: ${{ fromJSON(needs.features-matrix.outputs.scenarios) }}
with:
name: "Run scenario tests"
args: "-f ${{ matrix.feature }} --skip-autogenerated"
run-generated-feature-tests:
if: needs.features-matrix.outputs.features != '[]'
name: Test feature
needs: features-matrix
secrets: inherit
uses: ./.github/workflows/build-and-test-feature.yml
strategy:
fail-fast: false
matrix:
feature: ${{ fromJSON(needs.features-matrix.outputs.features) }}
with:
name: "Run generated tests"
args: "--skip-scenarios -f ${{ matrix.feature }} -i ubuntu:22.04"
image-matrix:
name: Determine image matrix
needs: features-matrix
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.matrix.outputs.matrix }}
steps:
- name: Checkout ${{ github.repository }}
uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false
- id: matrix
name: Determine image matrix
uses: ./.github/actions/image-matrix
with:
full_matrix: 'false'
features: "${{ needs.features-matrix.outputs.features }}"
scenarios: "${{ needs.features-matrix.outputs.scenarios }}"
test-images:
if: needs.image-matrix.outputs.matrix != '{"include":[]}'
name: ${{ matrix.name }}
needs: image-matrix
secrets: inherit
uses: ./.github/workflows/build-and-test-image.yml
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.image-matrix.outputs.matrix) }}
with:
os : "${{ matrix.os }}"
features: "${{ toJSON(matrix.features) }}"
container_env: "${{ toJSON(matrix.env) }}"