diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4c4969a55..f877c7dbd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,6 +1,29 @@ on: push name: Run tests jobs: + # The `ci-result` job doesn't actually test anything - it just aggregates the + # overall build status for bors, otherwise our bors.toml would need an entry + # for each individual job produced by the job-matrix. + # + # Ref: https://github.com/rust-lang/crater/blob/9ab6f9697c901c4a44025cf0a39b73ad5b37d198/.github/workflows/bors.yml#L125-L149 + # + # ALL THE SUBSEQUENT JOBS NEED THEIR `name` ADDED TO THE `needs` SECTION OF THIS JOB! + ci-result: + name: ci result + runs-on: ubuntu-latest + needs: + - geo_types + - geo + - geo_postgis + - coverage + - bench + steps: + - name: Mark the job as a success + if: success() + run: exit 0 + - name: Mark the job as a failure + if: "!success()" + run: exit 1 geo_types: name: geo-types runs-on: ubuntu-latest @@ -8,8 +31,11 @@ jobs: defaults: run: working-directory: geo-types + strategy: + matrix: + container_image: ["georust/geo-ci:rust-1.49", "georust/geo-ci:rust-1.50"] container: - image: georust/geo-ci + image: ${{ matrix.container_image }} steps: - name: Checkout repository uses: actions/checkout@v2 @@ -24,8 +50,11 @@ jobs: defaults: run: working-directory: geo + strategy: + matrix: + container_image: ["georust/geo-ci:rust-1.49", "georust/geo-ci:rust-1.50"] container: - image: georust/geo-ci + image: ${{ matrix.container_image }} steps: - name: Checkout repository uses: actions/checkout@v2 @@ -40,8 +69,11 @@ jobs: defaults: run: working-directory: geo-postgis + strategy: + matrix: + container_image: ["georust/geo-ci:rust-1.49", "georust/geo-ci:rust-1.50"] container: - image: georust/geo-ci + image: ${{ matrix.container_image }} steps: - name: Checkout repository uses: actions/checkout@v2 diff --git a/bors.toml b/bors.toml index 598abf469..bfa4661a1 100644 --- a/bors.toml +++ b/bors.toml @@ -1,7 +1,3 @@ status = [ - "geo-types", - "geo", - "geo-postgis", - "coverage", - "bench" + "ci result", ]