File tree 2 files changed +22
-36
lines changed
2 files changed +22
-36
lines changed Original file line number Diff line number Diff line change 1
- name : ' CI: UIRouter for AngularJS '
1
+ name : ' CI'
2
2
3
- on : [push]
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ pull_request :
4
8
5
9
jobs :
6
- test :
7
- name : Unit Tests
10
+ ci :
11
+ needs : [test]
8
12
runs-on : ubuntu-latest
9
13
steps :
10
- - uses : actions/checkout@v2
11
- - name : Install Dependencies
12
- run : yarn install --pure-lockfile
13
- - name : Run Tests
14
- run : yarn test
14
+ - run : true
15
15
16
- docs :
17
- name : Docs can be generated
18
- runs-on : ubuntu-latest
19
- steps :
20
- - uses : actions/checkout@v2
21
- - name : Install Dependencies
22
- run : yarn install --pure-lockfile
23
- - name : Generate Docs
24
- run : yarn docs
25
-
26
- test_downstream :
27
- name : Downstream projects still work
16
+ test :
17
+ name : yarn ${{ matrix.yarncmd }}
28
18
runs-on : ubuntu-latest
19
+ strategy :
20
+ matrix :
21
+ yarncmd : ['test', 'test:downstream', 'docs']
29
22
steps :
30
23
- uses : actions/checkout@v2
31
- - name : Prepare to Test Downstream Projects
32
- run : |
33
- npm config set scripts-prepend-node-path auto
34
- git config --global user.email [email protected]
35
- git config --global user.name uirouter_github_actions
36
24
- name : Install Dependencies
37
25
run : yarn install --pure-lockfile
38
- - name : Test Downstream Projects
39
- run : yarn test:downstream
26
+ - name : Run yarn ${{ matrix.yarncmd }}
27
+ run : yarn ${{ matrix.yarncmd }}
Original file line number Diff line number Diff line change 1
1
pull_request_rules :
2
- - name : Automatically squash and merge on CI success
2
+ - name : Auto Squash and Merge
3
3
conditions :
4
- - status-success=Unit Tests
5
- - status-success=Docs can be generated
6
- - status-success=Downstream projects still work
4
+ - base=master
5
+ - status-success=ci
7
6
- ' label=ready to squash and merge'
8
7
actions :
9
8
delete_head_branch : {}
10
9
merge :
11
10
method : squash
12
11
strict : smart
13
- - name : Automatically rebase and merge on CI success
12
+ - name : Auto Rebase and Merge
14
13
conditions :
15
- - status-success=Unit Tests
16
- - status-success=Docs can be generated
17
- - status-success=Downstream projects still work
14
+ - base=master
15
+ - status-success=ci
18
16
- ' label=ready to rebase and merge'
19
17
actions :
20
18
delete_head_branch : {}
You can’t perform that action at this time.
0 commit comments