diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..f37ae8f8 --- /dev/null +++ b/.github/workflows/build.yml @@ -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