forked from BasedHardware/omi
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (41 loc) · 1.23 KB
/
Copy pathbackend-checks.yml
File metadata and controls
47 lines (41 loc) · 1.23 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
name: Backend Checks
on:
push:
branches: main
pull_request:
branches: main
concurrency:
group: backend-checks-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
changes:
name: Detect Changes
runs-on: ubuntu-latest
outputs:
diff_base: ${{ steps.changes.outputs.diff_base }}
has_backend_runtime_env: ${{ steps.changes.outputs.has_backend_runtime_env }}
steps:
- name: Checkout code
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Detect changed paths
id: changes
uses: ./.github/actions/detect-changes
static-contracts:
name: Static Contracts
runs-on: ubuntu-latest
needs: changes
if: needs.changes.outputs.has_backend_runtime_env == 'true'
steps:
- name: Checkout code
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Check backend runtime env manifest
if: needs.changes.outputs.has_backend_runtime_env == 'true'
run: |
python3 -m pip install -q pyyaml pytest
CLOUD_RUN_VPC_NETWORK=offline-check-network \
CLOUD_RUN_VPC_SUBNET=offline-check-subnet \
backend/scripts/pre-deploy-check.sh