-
Notifications
You must be signed in to change notification settings - Fork 343
50 lines (40 loc) · 1.41 KB
/
wasm-pull-request.yml
File metadata and controls
50 lines (40 loc) · 1.41 KB
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
# This file is not auto-generated. Feel free to edit it.
name: ✨ WASM
on:
push:
branches:
- develop
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-wasm-pull-request
cancel-in-progress: ${{ github.ref != 'refs/heads/develop' }}
jobs:
wasm-changed-files:
name: 🔍 Files Changed
uses: ./.github/workflows/wasm-changed-files.yml
secrets: inherit
wasm-checks:
name: 🦀 Checks
uses: ./.github/workflows/wasm-checks.yml
needs: [wasm-changed-files]
if: needs.wasm-changed-files.outputs.any_changed == 'true' || github.ref == 'refs/heads/develop'
secrets: inherit
required-checks:
name: WASM Required Checks
runs-on: ubuntu-latest
needs: [wasm-changed-files, wasm-checks]
if: always()
steps:
- name: Checks Summary
run: |
echo "WASM Checks: ${{ needs.wasm-checks.result }}"
any_changed='${{ needs.wasm-changed-files.outputs.any_changed }}'
# Fail fast on any failures.
case '${{ needs.wasm-checks.result }}' in 'failure') exit 1 ;; esac
# If relevant files changed, then skipped/cancelled jobs should fail the summary.
if [[ "$any_changed" == 'true' ]]; then
if [[ '${{ needs.wasm-checks.result }}' == 'skipped' || '${{ needs.wasm-checks.result }}' == 'cancelled' ]]; then
exit 1
fi
fi
echo "Success!"