mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-04-22 23:08:02 +00:00
88 lines
2.4 KiB
YAML
88 lines
2.4 KiB
YAML
name: Master
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build_code:
|
|
name: Build Code
|
|
if: "! contains(github.event.head_commit.message, '[CI Skip]')"
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node-version: [12.x]
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
with:
|
|
token: ${{ secrets.GH_PAT }}
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
- name: Config yarn cache
|
|
id: yarn-cache-dir-path
|
|
run: echo "::set-output name=dir::$(yarn cache dir)"
|
|
- uses: actions/cache@v1
|
|
id: yarn-cache
|
|
with:
|
|
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
|
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-yarn-
|
|
- name: build
|
|
env:
|
|
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
|
|
GH_PAT: ${{ secrets.GH_PAT }}
|
|
GH_TOKEN: ${{ secrets.GH_PAT }}
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
run: |
|
|
yarn install | grep -v 'YN0013'
|
|
yarn polkadot-ci-ghact-build
|
|
|
|
build_docs:
|
|
name: Build Docs
|
|
if: "! contains(github.event.head_commit.message, '[CI Skip]')"
|
|
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: Config yarn cache
|
|
id: yarn-cache-dir-path
|
|
run: echo "::set-output name=dir::$(yarn cache dir)"
|
|
- uses: actions/cache@v1
|
|
id: yarn-cache
|
|
with:
|
|
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
|
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-yarn-
|
|
- name: build
|
|
env:
|
|
GH_PAT: ${{ secrets.GH_PAT }}
|
|
GH_TOKEN: ${{ secrets.GH_PAT }}
|
|
GH_PAGES_SRC: build-docs
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: |
|
|
yarn install | grep -v 'YN0013'
|
|
yarn polkadot-ci-ghact-docs
|
|
|
|
dummy:
|
|
name: Dummy
|
|
if: "contains(github.event.head_commit.message, '[CI Skip]')"
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node-version: [12.x]
|
|
steps:
|
|
- name: dummy
|
|
run: |
|
|
echo "Dummy skip step"
|