Merge pull request #3467 from h3poteto/github-actions
Setup GitHub Actions for build
This commit is contained in:
commit
5b04edd326
|
@ -0,0 +1,48 @@
|
|||
name: Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
- name: Install
|
||||
run: |
|
||||
yarn install
|
||||
- name: Test
|
||||
run: |
|
||||
yarn run spec
|
||||
- name: Compile main
|
||||
run: |
|
||||
yarn run pack:main
|
||||
- name: Compile renderer
|
||||
run: |
|
||||
yarn run pack:renderer
|
||||
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
- name: Install
|
||||
run: |
|
||||
yarn install
|
||||
- name: typecheck
|
||||
run: |
|
||||
yarn run typecheck
|
||||
- name: lint
|
||||
run: |
|
||||
yarn run lint
|
Loading…
Reference in New Issue