1
mirror of https://github.com/jakejarvis/netlify-plugin-cache.git synced 2025-04-26 02:55:22 -04:00

simple GitHub Action to build example site with plugin (locally from source)

This commit is contained in:
Jake Jarvis 2020-06-06 16:11:11 -04:00
parent 59541f2041
commit 9f339401ad
Signed by: jake
GPG Key ID: 2B0C9CF251E69A39
3 changed files with 24 additions and 1 deletions

17
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,17 @@
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '12'
- run: npm install -g netlify-cli
- run: netlify build
env:
NETLIFY_SITE_ID: '8ceb6251-650b-481a-976c-fec1a4f95800'
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}

View File

@ -1 +1,2 @@
.github/
example/

View File

@ -1,5 +1,10 @@
# only used in this example to build from parent directory
[[plugins]]
package = "netlify-plugin-cache"
package = "@netlify/plugin-local-install-core"
# package would normally equal `netlify-plugin-cache`
[[plugins]]
package = "../"
[plugins.inputs]
paths = ["cached"]