Add lint and compile tests to CI.

This commit is contained in:
XhmikosR
2020-05-31 14:58:08 +03:00
parent ff66f38cee
commit ffcbdb2029
3 changed files with 51 additions and 4 deletions

41
.github/workflows/ci.yml vendored Normal file
View File

@@ -0,0 +1,41 @@
name: CI
on:
pull_request:
release:
types:
- created
env:
CI: true
jobs:
run:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node:
- "10.x"
- "12.x"
- "14.x"
os:
- "ubuntu-latest"
- "macos-latest"
- "windows-latest"
steps:
- name: Clone repository
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Install npm dependencies
run: npm ci
- name: Build files
run: npm run compile