|
| 1 | +# This workflow runs for every pull request |
| 2 | +name: PR CI |
| 3 | + |
| 4 | +on: |
| 5 | + schedule: |
| 6 | + - cron: "00 18 * * 1-5" |
| 7 | + |
| 8 | +jobs: |
| 9 | + getVersion: |
| 10 | + uses: ./.github/workflows/dafny_version.yml |
| 11 | + getVerifyVersion: |
| 12 | + uses: ./.github/workflows/dafny_verify_version.yml |
| 13 | + pr-ci-format: |
| 14 | + needs: getVersion |
| 15 | + uses: ./.github/workflows/library_format.yml |
| 16 | + with: |
| 17 | + dafny: ${{needs.getVersion.outputs.version}} |
| 18 | + pr-ci-codegen: |
| 19 | + needs: getVersion |
| 20 | + uses: ./.github/workflows/ci_codegen.yml |
| 21 | + with: |
| 22 | + dafny: ${{needs.getVersion.outputs.version}} |
| 23 | + pr-ci-verification: |
| 24 | + needs: getVerifyVersion |
| 25 | + uses: ./.github/workflows/library_dafny_verification.yml |
| 26 | + with: |
| 27 | + dafny: ${{needs.getVerifyVersion.outputs.version}} |
| 28 | + pr-ci-test-vector-verification: |
| 29 | + needs: getVerifyVersion |
| 30 | + uses: ./.github/workflows/test_vector_verification.yml |
| 31 | + with: |
| 32 | + dafny: ${{needs.getVerifyVersion.outputs.version}} |
| 33 | + pr-ci-java: |
| 34 | + needs: getVersion |
| 35 | + uses: ./.github/workflows/ci_test_java.yml |
| 36 | + with: |
| 37 | + dafny: ${{needs.getVersion.outputs.version}} |
| 38 | + pr-ci-java-test-vectors: |
| 39 | + needs: getVersion |
| 40 | + uses: ./.github/workflows/ci_test_vector_java.yml |
| 41 | + with: |
| 42 | + dafny: ${{needs.getVersion.outputs.version}} |
| 43 | + pr-ci-java-examples: |
| 44 | + needs: getVersion |
| 45 | + uses: ./.github/workflows/ci_examples_java.yml |
| 46 | + with: |
| 47 | + dafny: ${{needs.getVersion.outputs.version}} |
| 48 | + pr-ci-net: |
| 49 | + needs: getVersion |
| 50 | + uses: ./.github/workflows/ci_test_net.yml |
| 51 | + with: |
| 52 | + dafny: ${{needs.getVersion.outputs.version}} |
| 53 | + pr-ci-rust: |
| 54 | + needs: getVersion |
| 55 | + uses: ./.github/workflows/library_rust_tests.yml |
| 56 | + with: |
| 57 | + dafny: ${{needs.getVersion.outputs.version}} |
| 58 | + pr-ci-go: |
| 59 | + needs: getVersion |
| 60 | + uses: ./.github/workflows/ci_test_go.yml |
| 61 | + with: |
| 62 | + dafny: ${{needs.getVersion.outputs.version}} |
| 63 | + pr-ci-net-test-vectors: |
| 64 | + needs: getVersion |
| 65 | + uses: ./.github/workflows/ci_test_vector_net.yml |
| 66 | + with: |
| 67 | + dafny: ${{needs.getVersion.outputs.version}} |
| 68 | + pr-ci-net-examples: |
| 69 | + needs: getVersion |
| 70 | + uses: ./.github/workflows/ci_examples_net.yml |
| 71 | + with: |
| 72 | + dafny: ${{needs.getVersion.outputs.version}} |
| 73 | + pr-ci-all-required: |
| 74 | + if: always() |
| 75 | + needs: |
| 76 | + - getVersion |
| 77 | + - getVerifyVersion |
| 78 | + - pr-ci-format |
| 79 | + - pr-ci-codegen |
| 80 | + - pr-ci-verification |
| 81 | + - pr-ci-test-vector-verification |
| 82 | + - pr-ci-java |
| 83 | + - pr-ci-java-test-vectors |
| 84 | + - pr-ci-java-examples |
| 85 | + - pr-ci-net |
| 86 | + - pr-ci-rust |
| 87 | + - pr-ci-go |
| 88 | + - pr-ci-net-test-vectors |
| 89 | + - pr-ci-net-examples |
| 90 | + runs-on: ubuntu-22.04 |
| 91 | + steps: |
| 92 | + - name: Verify all required jobs passed |
| 93 | + uses: re-actors/alls-green@release/v1 |
| 94 | + with: |
| 95 | + jobs: ${{ toJSON(needs) }} |
0 commit comments