32 lines
717 B
YAML
32 lines
717 B
YAML
name: CI
|
|
|
|
on: push
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout project
|
|
uses: actions/checkout@v2
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: '16.x'
|
|
- name: Install Dependencies
|
|
run: yarn ci:install
|
|
- name: Run linter
|
|
run: yarn run ci:eslint
|
|
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout project
|
|
uses: actions/checkout@v2
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: '16.x'
|
|
- name: Install Dependencies
|
|
run: yarn run ci:install
|
|
- name: Compile Typescript
|
|
run: yarn run ci:tsc |