Moved plain-code testing into mocha task so it could be ran via npm test
#14
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: Build | |
on: | |
pull_request: | |
paths: | |
- '**/*.js' | |
- '**/*.y?ml' | |
- '*.js' | |
- .github/workflows/build.yml | |
push: | |
paths: | |
- '**/*.js' | |
- '**/*.y?ml' | |
- '*.js' | |
- .github/workflows/build.yml | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16.x | |
- uses: actions/checkout@v4 | |
- run: npm version | |
- run: npm ci | |
- run: npm install | |
- run: npm run lint | |
- run: npm test | |
- run: npm run package |