You've already forked netlify-plugin-cache
mirror of
https://github.com/jakejarvis/netlify-plugin-cache.git
synced 2025-11-23 18:46:05 -05:00
add very basic linting & expand CI tests to Node >=10
This commit is contained in:
15
.github/workflows/ci.yml
vendored
15
.github/workflows/ci.yml
vendored
@@ -4,14 +4,23 @@ on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
matrix:
|
||||
node: [14.x, 13.x, 12.x, 10.x]
|
||||
fail-fast: false
|
||||
runs-on: ubuntu-latest
|
||||
name: Node ${{ matrix.node }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: '12'
|
||||
- run: npm install -g netlify-cli
|
||||
- run: netlify build
|
||||
node-version: ${{ matrix.node }}
|
||||
- name: Install dependencies
|
||||
run: npm install --no-package-lock --no-optional
|
||||
- name: Run tests
|
||||
run: npm run test
|
||||
- name: Build example site locally with plugin
|
||||
run: npm run build
|
||||
env:
|
||||
NETLIFY_SITE_ID: '8ceb6251-650b-481a-976c-fec1a4f95800'
|
||||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user