Use GitHub workflows for CI

Close #1845
Fix #1841
This commit is contained in:
Nicolas Gallagher
2020-12-14 12:10:15 -08:00
parent e03ac45173
commit 4a1b31e3ef
7 changed files with 69 additions and 27 deletions
@@ -1,7 +1,9 @@
name: compressed-size
name: performance
on: [pull_request]
jobs:
build:
compressed-size:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
+53
View File
@@ -0,0 +1,53 @@
name: test
on:
push:
branches:
- "master"
pull_request:
types: [opened, synchronize, reopened]
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '14.x'
- run: npm install -g yarn
- run: yarn install
- run: yarn fmt:report
type-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '14.x'
- run: npm install -g yarn
- run: yarn install
- run: yarn flow
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '14.x'
- run: npm install -g yarn
- run: yarn install
- run: yarn lint:report
unit-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '14.x'
- run: npm install -g yarn
- run: yarn install
- run: yarn jest