From d6ba6ccdd8d9e7d287ab462ddfd33d42c7892df9 Mon Sep 17 00:00:00 2001 From: Rapiz Date: Thu, 10 Sep 2020 23:07:59 +0800 Subject: [PATCH] ci: Add lint (#455) Co-authored-by: Rapiz --- .github/workflows/multiple-node-build.yml | 29 +++++++++++++---------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/.github/workflows/multiple-node-build.yml b/.github/workflows/multiple-node-build.yml index 00dafb9bc0619d..ad6c2bc1ce8321 100644 --- a/.github/workflows/multiple-node-build.yml +++ b/.github/workflows/multiple-node-build.yml @@ -23,16 +23,19 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - # Install dependencies - - name: Install dependencies - run: yarn - - - name: Build the Dashboard - run: yarn build + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + + # Install dependencies + - name: Install dependencies + run: yarn + + - name: Build the Dashboard + run: yarn build + + - name: Lint + run: yarn run lint:js && yarn run lint:style