From 8d322cc9196346c506b0b09e312cd83d9f54619f Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Thu, 14 Nov 2019 01:22:14 +0100 Subject: [PATCH] Update test.yml --- .github/workflows/test.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 579c074..f830ea0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,27 +3,22 @@ name: Test on: [push] jobs: - build: + test: 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 }} + node-version: '12.x' - name: Cache node modules uses: actions/cache@v1 with: path: ~/.npm key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node- + restore-keys: ${{ runner.os }}-node- - name: Cache Gatsby build output uses: actions/cache@v1 @@ -38,7 +33,7 @@ jobs: run: npm test - name: Build - run: npm run build --if-present + run: npm run build env: CI: true GATSBY_GITHUB_TOKEN: ${{ secrets.GATSBY_GITHUB_TOKEN }}