Skip to content
Permalink
Browse files

Create codequality.yml

  • Loading branch information
gc committed Feb 14, 2020
1 parent 1646bd9 commit 5f6718911cf8d160c022dbc8fc2aff78b5581aa9
Showing with 56 additions and 0 deletions.
  1. +56 −0 .github/workflows/codequality.yml
@@ -0,0 +1,56 @@
name: Code Quality

on:
push:
branches:
- master
pull_request:

jobs:
ESLint:
name: ESLint
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v1
- name: Use Node.js 12
uses: actions/setup-node@v1
with:
node-version: 12
- name: Restore CI Cache
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.os }}-12-${{ hashFiles('**/yarn.lock') }}
- name: Install Dependencies
run: yarn
- name: Run ESLint
uses: icrawl/action-eslint@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
job-name: ESLint

Typescript:
name: Typescript
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v1
- name: Use Node.js 12
uses: actions/setup-node@v1
with:
node-version: 12
- name: Restore CI Cache
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.os }}-12-${{ hashFiles('**/yarn.lock') }}
- name: Install Dependencies
run: yarn
- name: Run TSC
uses: icrawl/action-tsc@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
job-name: Typescript

0 comments on commit 5f67189

Please sign in to comment.
You can’t perform that action at this time.