1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2024-12-22 17:23:22 +01:00

Update test.yml

This commit is contained in:
Matthias Kretschmann 2019-11-14 01:22:14 +01:00 committed by GitHub
parent 4ca211bf5c
commit 8d322cc919
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,27 +3,22 @@ name: Test
on: [push] on: [push]
jobs: jobs:
build: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }} - name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1 uses: actions/setup-node@v1
with: with:
node-version: ${{ matrix.node-version }} node-version: '12.x'
- name: Cache node modules - name: Cache node modules
uses: actions/cache@v1 uses: actions/cache@v1
with: with:
path: ~/.npm path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: | restore-keys: ${{ runner.os }}-node-
${{ runner.os }}-node-
- name: Cache Gatsby build output - name: Cache Gatsby build output
uses: actions/cache@v1 uses: actions/cache@v1
@ -38,7 +33,7 @@ jobs:
run: npm test run: npm test
- name: Build - name: Build
run: npm run build --if-present run: npm run build
env: env:
CI: true CI: true
GATSBY_GITHUB_TOKEN: ${{ secrets.GATSBY_GITHUB_TOKEN }} GATSBY_GITHUB_TOKEN: ${{ secrets.GATSBY_GITHUB_TOKEN }}