Skip to content

Commit 95fe0d7

Browse files
committed
ci: Add workflows.
1 parent 6785f95 commit 95fe0d7

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.github/workflows/build.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Build
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
jobs:
8+
test:
9+
name: Test
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
node-version: [10, 12, 14]
14+
fail-fast: true
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: actions/setup-node@v2-beta
18+
with:
19+
node-version: ${{ matrix.node-version }}
20+
- run: yarn install --ignore-engines --frozen-lockfile
21+
- run: yarn test

.github/workflows/pr.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: PR
2+
on: pull_request
3+
jobs:
4+
conventional:
5+
name: Conventional PR
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v2
9+
- uses: actions/setup-node@v2-beta
10+
- run: yarn install
11+
- uses: beemojs/conventional-pr-action@v2
12+
with:
13+
auto-install: false
14+
env:
15+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)