mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-04-22 09:07:56 +00:00
Split GH actions (#222)
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
name: Node CI
|
||||
|
||||
on: [push]
|
||||
name: CI
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
name: Linting
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
@@ -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:
|
||||
@@ -32,10 +33,11 @@ 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:
|
||||
@@ -48,7 +50,22 @@ jobs:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
- name: build
|
||||
run: |
|
||||
yarn install
|
||||
yarn build
|
||||
env:
|
||||
CI: true
|
||||
yarn install --frozen-lockfile
|
||||
yarn build:split:code
|
||||
|
||||
build_docs:
|
||||
name: Build Docs
|
||||
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:docs
|
||||
Reference in New Issue
Block a user