mirror of
https://github.com/kremalicious/portfolio.git
synced 2025-02-14 21:10:41 +01:00
test more node versions
This commit is contained in:
parent
222ae964d5
commit
b0838448d0
20
.github/workflows/test.yml
vendored
20
.github/workflows/test.yml
vendored
@ -1,17 +1,22 @@
|
|||||||
name: Test
|
name: Test
|
||||||
|
|
||||||
on: [push]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
node-version: ['10', '12', '13']
|
||||||
|
|
||||||
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: '12.x'
|
node-version: ${{ matrix.node-version }}
|
||||||
|
|
||||||
- name: Cache node modules
|
- name: Cache node modules
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
@ -26,14 +31,9 @@ jobs:
|
|||||||
path: public
|
path: public
|
||||||
key: ${{ runner.os }}-public
|
key: ${{ runner.os }}-public
|
||||||
|
|
||||||
- name: Install Dependencies
|
- run: npm ci
|
||||||
run: npm ci
|
- run: npm test
|
||||||
|
- run: npm run build
|
||||||
- name: Test
|
|
||||||
run: npm test
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
run: npm run build
|
|
||||||
env:
|
env:
|
||||||
CI: true
|
CI: true
|
||||||
GATSBY_GITHUB_TOKEN: ${{ secrets.GATSBY_GITHUB_TOKEN }}
|
GATSBY_GITHUB_TOKEN: ${{ secrets.GATSBY_GITHUB_TOKEN }}
|
||||||
|
Loading…
Reference in New Issue
Block a user