-
Notifications
You must be signed in to change notification settings - Fork 1
61 lines (53 loc) · 2.05 KB
/
test-pr.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Test Azimuth deployment
on:
pull_request:
types:
- opened
- synchronize
- ready_for_review
- reopened
branches:
- main
concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: true
jobs:
# This job exists so that PRs from outside the main repo are rejected
fail_on_remote:
runs-on: ubuntu-latest
steps:
- name: PR must be from a branch in the stackhpc/azimuth-identity-operator repo
run: exit ${{ github.repository == 'stackhpc/azimuth-identity-operator' && '0' || '1' }}
publish_artifacts:
needs: [fail_on_remote]
uses: ./.github/workflows/build-push-artifacts.yaml
run_azimuth_tests:
needs: [publish_artifacts]
runs-on: ubuntu-latest
steps:
# Check out the configuration repository
- name: Set up Azimuth environment
uses: stackhpc/azimuth-config/.github/actions/setup@main
with:
os-clouds: ${{ secrets.OS_CLOUDS }}
environment-prefix: identity-ci
# Use the version of the chart that we just built
# We also don't need all the tests
# The workstation is sufficient to test that the OIDC discovery is working
extra-vars: |
azimuth_identity_operator_chart_version: ${{ needs.publish_artifacts.outputs.chart-version }}
generate_tests_caas_test_case_slurm_enabled: false
generate_tests_caas_test_case_repo2docker_enabled: false
generate_tests_caas_test_case_rstudio_enabled: false
generate_tests_kubernetes_suite_enabled: false
generate_tests_kubernetes_apps_suite_enabled: false
# Provision Azimuth using the azimuth-ops version under test
- name: Provision Azimuth
uses: stackhpc/azimuth-config/.github/actions/provision@main
# # Run the tests
- name: Run Azimuth tests
uses: stackhpc/azimuth-config/.github/actions/test@main
# Tear down the environment
- name: Destroy Azimuth
uses: stackhpc/azimuth-config/.github/actions/destroy@main
if: ${{ always() }}