ci: improve ci jobs

This commit is contained in:
kyranjamie
2021-06-23 15:26:42 +02:00
committed by Reed Rosenbluth
parent 21713d7904
commit b91bcbceff
3 changed files with 77 additions and 11 deletions

36
.github/workflows/lint.yml vendored Normal file
View File

@@ -0,0 +1,36 @@
name: Lint
on:
push:
branches:
- '**'
jobs:
lint:
runs-on: ubuntu-latest
env:
NODE_OPTIONS: --max-old-space-size=4096
steps:
- uses: actions/checkout@v2
- name: Set Node Version
uses: actions/setup-node@v2
with:
node-version: 16
- name: Restore lerna cache
uses: actions/cache@v2
with:
path: |
node_modules
packages/*/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies
run: npm i
- name: Bootstrap
run: npm run bootstrap
- name: Lint
run: npm run lint

View File

@@ -1,12 +1,12 @@
name: stacks.js
name: Tests
on:
push:
pull_request:
branches:
- '**'
jobs:
code_checks:
name: Code Checks
tests:
runs-on: ubuntu-latest
env:
NODE_OPTIONS: --max-old-space-size=4096
@@ -23,7 +23,7 @@ jobs:
with:
path: |
node_modules
*/*/node_modules
packages/*/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies
@@ -32,12 +32,6 @@ jobs:
- name: Bootstrap
run: npm run bootstrap
- name: Lint
run: npm run lint
- name: Typecheck
run: npm run typecheck
- name: Build
run: npm run build

36
.github/workflows/typecheck.yml vendored Normal file
View File

@@ -0,0 +1,36 @@
name: Typecheck
on:
push:
branches:
- '**'
jobs:
typecheck:
runs-on: ubuntu-latest
env:
NODE_OPTIONS: --max-old-space-size=4096
steps:
- uses: actions/checkout@v2
- name: Set Node Version
uses: actions/setup-node@v2
with:
node-version: 16
- name: Restore lerna cache
uses: actions/cache@v2
with:
path: |
node_modules
packages/*/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies
run: npm i
- name: Bootstrap
run: npm run bootstrap
- name: Typecheck
run: npm run typecheck