Skip to content

Commit 0cea8fc

Browse files
author
Kadi Kraman
authored
Merge pull request #394 from FormidableLabs/chore/update-ci
Update GitHub Actions CI to run on pull requests
2 parents cfc0282 + 113fd79 commit 0cea8fc

File tree

1 file changed

+21
-15
lines changed

1 file changed

+21
-15
lines changed

.github/workflows/main.yml

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,28 @@
11
name: CI
22

3-
on: [push]
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened, ready_for_review]
46

57
jobs:
8+
lint:
9+
name: Lint
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v1
13+
- uses: actions/setup-node@v1
14+
with:
15+
node-version: '10.x'
16+
- run: yarn install --frozen-lockfile
17+
- run: yarn lint
18+
619
test:
20+
name: Test
721
runs-on: ubuntu-latest
8-
922
steps:
10-
- uses: actions/checkout@v1
11-
- uses: docker://node:8
12-
with:
13-
entrypoint: yarn
14-
args: install --pure-lockfile --audit
15-
- uses: docker://node:8
16-
with:
17-
entrypoint: yarn
18-
args: lint
19-
- uses: docker://node:8
20-
with:
21-
entrypoint: yarn
22-
args: test
23+
- uses: actions/checkout@v1
24+
- uses: actions/setup-node@v1
25+
with:
26+
node-version: '10.x'
27+
- run: yarn install --frozen-lockfile
28+
- run: yarn test

0 commit comments

Comments
 (0)