-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 1.07 KB
/
build-pr.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
31
32
33
34
35
36
37
38
39
name: Build PR
run-name: "PR Build: #${{ github.event.pull_request.number }} (${{ github.run_attempt }}.${{ github.run_number }}) - ${{ github.event.pull_request.title }}"
on:
pull_request:
branches:
- "main"
defaults:
run:
shell: bash
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
gen-requirements:
uses: "howsoai/.github/.github/workflows/compile-requirements.yml@main"
secrets: inherit
with:
upstream-packages: 'amalgam-lang-py howso-engine-py'
extras: ''
xray:
uses: "howsoai/.github/.github/workflows/scan-pull-request.yml@main"
secrets: inherit
with:
upstream-packages: 'amalgam-lang-py howso-engine-py'
# This job is here to have only one final step to add for "Status Checks"
# in GitHub, instead of adding every leaf test from 'build-test-package'
final-check:
needs: ['gen-requirements', 'xray']
if: always() && (contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled'))
runs-on: ubuntu-latest
steps:
- run: exit 1