Merge pull request #3467 from h3poteto/github-actions

Setup GitHub Actions for build
This commit is contained in:
AkiraFukushima 2022-07-02 00:04:05 +09:00 committed by GitHub
commit 5b04edd326
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 48 additions and 0 deletions

48
.github/workflows/build.yml vendored Normal file
View File

@ -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