-
Notifications
You must be signed in to change notification settings - Fork 747
65 lines (61 loc) · 1.38 KB
/
pr-push-dev.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
56
57
58
59
60
61
62
63
64
65
name: '[PR|Push] Development'
on:
pull_request:
branches:
- beta
- develop
- next-version
paths:
- '__mocks__/**'
- '__tests__/**'
- 'src/**'
- 'package*'
- 'ts*'
- '!www/**'
push:
branches:
- beta
- develop
- next-version
paths:
- '__mocks__/**'
- '__tests__/**'
- 'src/**'
- 'package*'
- 'ts*'
- '!www/**'
jobs:
skip_check:
name: Skip check
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_duplicate.outputs.should_skip }}
steps:
- id: skip_duplicate
uses: fkirc/skip-duplicate-actions@v5
with:
cancel_others: 'true'
tests:
name: Run test on ${{ matrix.name }}
needs: [skip_check]
if: needs.skip_check.outputs.should_skip != 'true'
strategy:
fail-fast: false
matrix:
include:
- name: rpc-devnet
TEST_RPC_URL: http://127.0.0.1:5050/rpc
uses: ./.github/workflows/_test.yml
with:
use-devnet: ${{ matrix.TEST_RPC_URL != '' }}
secrets:
TEST_RPC_URL: ${{ matrix.TEST_RPC_URL }}
release:
name: Release
needs: [skip_check, tests]
if: |
!cancelled() && !failure()
&& needs.skip_check.outputs.should_skip != ''
&& github.event_name == 'push'
uses: ./.github/workflows/_release.yml
secrets: inherit