46 lines
880 B
YAML
46 lines
880 B
YAML
|
name: CI
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- main
|
||
|
- master
|
||
|
pull_request: {}
|
||
|
|
||
|
concurrency:
|
||
|
group: ci-${{ github.head_ref || github.ref }}
|
||
|
cancel-in-progress: true
|
||
|
|
||
|
jobs:
|
||
|
lint:
|
||
|
name: "Lint"
|
||
|
runs-on: ubuntu-latest
|
||
|
|
||
|
steps:
|
||
|
- uses: actions/checkout@v3
|
||
|
- name: Install Node
|
||
|
uses: actions/setup-node@v3
|
||
|
with:
|
||
|
node-version: 12.x
|
||
|
cache: yarn
|
||
|
- name: Install Dependencies
|
||
|
run: yarn install --frozen-lockfile
|
||
|
- name: Lint
|
||
|
run: yarn lint
|
||
|
|
||
|
test:
|
||
|
name: "Test"
|
||
|
runs-on: ubuntu-latest
|
||
|
|
||
|
steps:
|
||
|
- uses: actions/checkout@v3
|
||
|
- name: Install Node
|
||
|
uses: actions/setup-node@v3
|
||
|
with:
|
||
|
node-version: 12.x
|
||
|
cache: yarn
|
||
|
- name: Install Dependencies
|
||
|
run: yarn install --frozen-lockfile
|
||
|
- name: Run Tests
|
||
|
run: yarn test
|