From 92ab4699b372cd99f761776060fe3f9a62b184e4 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Thu, 20 Feb 2020 20:56:31 +0100 Subject: [PATCH] Re-add code build --- .github/workflows/push-master.yml | 70 +++++++++++++++---------------- 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/.github/workflows/push-master.yml b/.github/workflows/push-master.yml index 86d7ad332..6d907133b 100644 --- a/.github/workflows/push-master.yml +++ b/.github/workflows/push-master.yml @@ -5,41 +5,41 @@ on: - 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 --frozen-lockfile - # yarn polkadot-ci-ghact-build + 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 --frozen-lockfile + yarn polkadot-ci-ghact-build build_docs: name: Build Docs