Updated development packages #184
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |