-
Notifications
You must be signed in to change notification settings - Fork 45
55 lines (45 loc) · 1.21 KB
/
pull-request.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Workflow - Pull Request
on:
workflow_dispatch:
pull_request:
branches: [main]
types: [opened, synchronize, reopened, ready_for_review]
concurrency:
group: pr-checks-${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions:
pull-requests: write
jobs:
update_db_version:
name: Update DB Version
if: github.event.pull_request.draft == false
uses: ./.github/workflows/db-version.yml
linters:
name: Run linters
needs: update_db_version
if: ${{ always() }}
uses: ./.github/workflows/linters.yml
rust_check:
name: Run check
if: github.event.pull_request.draft == false
uses: ./.github/workflows/rust-check.yml
linters_cargo:
name: Run Cargo linters
needs: rust_check
uses: ./.github/workflows/linters-cargo.yml
coverage:
name: Run Coverage
needs: update_db_version
if: ${{ always() }}
secrets: inherit
uses: ./.github/workflows/coverage.yml
build:
name: Build Madara
needs: update_db_version
if: ${{ always() }}
uses: ./.github/workflows/build.yml
js_test:
name: Run JS Tests
needs: build
if: ${{ always() }}
uses: ./.github/workflows/starknet-js-test.yml