Skip to content

Added string type fallback for untyped cache control modes #171

Added string type fallback for untyped cache control modes

Added string type fallback for untyped cache control modes #171

name: Validate Module
on:
# Run when a push or pull request contains changes in the module directory.
push:
paths:
- module/**
pull_request:
paths:
- module/**
jobs:
main:
name: Validate Module
runs-on: ubuntu-latest
steps:
# Checkout
- name: Checkout
uses: actions/checkout@v2
# Setup Node
- name: Setup Node
uses: actions/[email protected]
with:
node-version: 16
registry-url: https://registry.npmjs.org
# Cache Node Module Dependencies
- name: Cache Node Module Dependencies
uses: actions/cache@v2
with:
path: "module/node_modules"
key: nodemodules-${{ runner.os }}-${{ hashFiles('module/package-lock.json') }}
# Install Dependencies
- name: Install Dependencies
working-directory: module
run: npm install
# Lint Code
- name: Lint Code
working-directory: module
run: npm run lint
# Build Source
- name: Build Source
working-directory: module
run: npm run build