Skip to content

Commit c3903b3

Browse files
chore(ci): run ci on pull_request and push to master
1 parent 8e16527 commit c3903b3

File tree

2 files changed

+47
-5
lines changed

2 files changed

+47
-5
lines changed

.github/workflows/ci.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: 'CI'
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
11+
ci:
12+
needs: [test]
13+
runs-on: ubuntu-latest
14+
steps:
15+
- run: true
16+
17+
test:
18+
name: yarn ${{ matrix.yarncmd }}
19+
runs-on: ubuntu-latest
20+
strategy:
21+
matrix:
22+
yarncmd: ['test']
23+
steps:
24+
- uses: actions/checkout@v2
25+
- name: Configure
26+
run: |
27+
npm config set scripts-prepend-node-path auto
28+
git config --global user.email [email protected]
29+
git config --global user.name uirouter_github_actions
30+
- name: Install Dependencies
31+
run: yarn install --pure-lockfile
32+
- name: Run Tests
33+
run: yarn ${{ matrix.yarncmd }}

.mergify.yml

+14-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
11
pull_request_rules:
2-
- name: Automatically merge on CI success and review
2+
- name: Auto Squash and Merge
33
conditions:
4-
- status-success=continuous-integration/travis-ci/pr
5-
- 'label=automerge'
4+
- base=master
5+
- status-success=ci
6+
- 'label=ready to squash and merge'
67
actions:
78
delete_head_branch: {}
8-
label:
9-
add: ['auto merged']
109
merge:
1110
method: squash
1211
strict: smart
12+
- name: Auto Rebase and Merge
13+
conditions:
14+
- base=master
15+
- status-success=ci
16+
- 'label=ready to rebase and merge'
17+
actions:
18+
delete_head_branch: {}
19+
merge:
20+
method: rebase
21+
strict: smart

0 commit comments

Comments
 (0)