Migrate Travis to GitHub Actions
This commit is contained in:
parent
25312e8944
commit
2b13c9ce02
2 changed files with 18 additions and 7 deletions
18
.github/workflows/build.yml
vendored
Normal file
18
.github/workflows/build.yml
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
name: build
|
||||||
|
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: '16'
|
||||||
|
- run: yarn --frozen-lockfile
|
||||||
|
- run: yarn test
|
||||||
|
- run: yarn lint
|
||||||
|
- run: yarn pretty-quick --check
|
||||||
|
- run: yarn build
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
language: node_js
|
|
||||||
node_js:
|
|
||||||
- lts/*
|
|
||||||
cache: yarn
|
|
||||||
script:
|
|
||||||
- yarn test
|
|
||||||
- yarn lint
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue