-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (27 loc) · 970 Bytes
/
on-push.yml
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
name: "On Push"
on:
push:
env:
CARGO_TERM_COLOR: always
jobs:
# Do not change this job's name without also changing "pr-ready"'s
# job name in "on-merge.yml". These jobs must have the same name.
# See the README for more details.
pr-ready:
if: always()
name: "⚡ PR Ready"
runs-on: ubuntu-22.04
needs:
- "build"
steps:
- if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'skipped') }}
run: |
echo "One or more dependent jobs failed, was skipped, or was cancelled. All jobs must pass for the PR to be ready."
exit 1
- run: echo "OK"
# This job installs Cargo Make and Cargo Nextest before running
# the CI workflow using Cargo Make. Most of the time, it should
# restore Cargo Make and other dependencies from cache.
build:
name: Validate Rust Build
uses: "wack/gh-actions/.github/workflows/validate.yml@trunk"