|
| 1 | +name: Run PR Tests |
| 2 | +on: [push, pull_request, workflow_dispatch] |
| 3 | +concurrency: |
| 4 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 5 | + cancel-in-progress: true |
| 6 | +jobs: |
| 7 | + |
| 8 | + run-sanity-tests: |
| 9 | + needs: build-noobaa-image |
| 10 | + uses: ./.github/workflows/sanity.yaml |
| 11 | + |
| 12 | + run-sanity-ssl-tests: |
| 13 | + needs: build-noobaa-image |
| 14 | + uses: ./.github/workflows/sanity-ssl.yaml |
| 15 | + |
| 16 | + run-unit-tests: |
| 17 | + needs: build-noobaa-image |
| 18 | + uses: ./.github/workflows/unit.yaml |
| 19 | + |
| 20 | + run-unit-tests-postgres: |
| 21 | + needs: build-noobaa-image |
| 22 | + uses: ./.github/workflows/postgres-unit-tests.yaml |
| 23 | + |
| 24 | + run-nc-unit-tests: |
| 25 | + needs: build-noobaa-image |
| 26 | + uses: ./.github/workflows/nc_unit.yml |
| 27 | + |
| 28 | + ceph-s3-tests: |
| 29 | + needs: build-noobaa-image |
| 30 | + uses: ./.github/workflows/ceph-s3-tests.yaml |
| 31 | + |
| 32 | + ceph-nsfs-s3-tests: |
| 33 | + needs: build-noobaa-image |
| 34 | + uses: ./.github/workflows/ceph-nsfs-s3-tests.yaml |
| 35 | + |
| 36 | + warp-tests: |
| 37 | + needs: build-noobaa-image |
| 38 | + uses: ./.github/workflows/warp-tests.yaml |
| 39 | + |
| 40 | + warp-nc-tests: |
| 41 | + needs: build-noobaa-image |
| 42 | + uses: ./.github/workflows/warp-nc-tests.yaml |
| 43 | + |
| 44 | + build-noobaa-image: |
| 45 | + runs-on: ubuntu-latest |
| 46 | + timeout-minutes: 90 |
| 47 | + steps: |
| 48 | + - name: Checkout |
| 49 | + uses: actions/checkout@v4 |
| 50 | + |
| 51 | + - name: make noobaa image |
| 52 | + run: make tester |
| 53 | + |
| 54 | + - name: create docker artifact |
| 55 | + run: | |
| 56 | + docker save --output noobaa.tar noobaa |
| 57 | + docker save --output noobaa-tester.tar noobaa-tester |
| 58 | +
|
| 59 | + - name: upload noobaa docker image |
| 60 | + uses: actions/upload-artifact@v4 |
| 61 | + with: |
| 62 | + name: noobaa-image |
| 63 | + path: noobaa.tar |
| 64 | + retention-days: "1" |
| 65 | + |
| 66 | + - name: upload noobaa-tester docker image |
| 67 | + uses: actions/upload-artifact@v4 |
| 68 | + with: |
| 69 | + name: noobaa-tester |
| 70 | + path: noobaa-tester.tar |
| 71 | + retention-days: "1" |
0 commit comments