Skip to content

Commit

Permalink
Merge fe173d3 into 309d691
Browse files Browse the repository at this point in the history
  • Loading branch information
jacogr committed Oct 4, 2019
2 parents 309d691 + fe173d3 commit 6766f4e
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 13 deletions.
41 changes: 29 additions & 12 deletions .github/workflows/nodejs.yml → .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Node CI

on: [push]
name: CI
on: push

jobs:
lint:
name: Linting
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -16,10 +16,11 @@ jobs:
node-version: ${{ matrix.node-version }}
- name: lint
run: |
yarn install
yarn install --frozen-lockfile
yarn lint
test:
name: Testing
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -32,10 +33,28 @@ jobs:
node-version: ${{ matrix.node-version }}
- name: test
run: |
yarn install
yarn install --frozen-lockfile
yarn test
build:
build_code:
name: Build Code
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: build
run: |
yarn install --frozen-lockfile
yarn build:split:code
build_docs:
name: Build Docs
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -48,7 +67,5 @@ jobs:
node-version: ${{ matrix.node-version }}
- name: build
run: |
yarn install
yarn build
env:
CI: true
yarn install --frozen-lockfile
yarn build:split:docs
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
"typescript": "^3.6.3"
},
"scripts": {
"build": "polkadot-dev-build-ts && polkadot-dev-build-docs",
"build": "yarn build:split:code && yarn build:split:docs",
"build:split:code": "polkadot-dev-build-ts",
"build:split:docs": "polkadot-dev-build-docs",
"check": "yarn lint",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx . && tsc --noEmit --pretty",
"clean": "polkadot-dev-clean-build",
Expand Down

0 comments on commit 6766f4e

Please sign in to comment.