mirror of
https://github.com/developit/microbundle.git
synced 2026-01-18 13:56:35 +00:00
* remove bors, appveyor and replace sizereport with our own * remove install from size * Update .github/workflows/nodejs.yml Co-authored-by: Ryan Christian <33403762+rschristian@users.noreply.github.com> Co-authored-by: Ryan Christian <33403762+rschristian@users.noreply.github.com>
39 lines
995 B
YAML
39 lines
995 B
YAML
name: Node CI
|
|
|
|
on:
|
|
pull_request: {}
|
|
push:
|
|
branches-ignore:
|
|
- trying.tmp
|
|
- staging.tmp
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
node-version: [12.x, 14.x]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
- name: Cache node modules
|
|
uses: actions/cache@v1
|
|
env:
|
|
cache-name: cache-node-modules
|
|
with:
|
|
path: ~/.npm
|
|
# This uses the same name as the build-action so we can share the caches.
|
|
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-build-${{ env.cache-name }}-
|
|
${{ runner.os }}-build-
|
|
${{ runner.os }}-
|
|
- run: npm ci --ignore-scripts
|
|
- name: npm build and test
|
|
run: npm test
|