adding pnpTest WIP #759
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: Pull Request Testing | |
on: pull_request | |
jobs: | |
run_pr_tests: | |
runs-on: ubuntu-latest | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v3 | |
# setup nodejs | |
- name: Use Node.js 16 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
registry-url: 'https://registry.npmjs.org' | |
cache: 'npm' | |
cache-dependency-path: package-lock.json | |
# Run the npm install | |
- run: npm ci | |
- name: Run lint | |
run: npm run lint | |
- name: Run package | |
run: npm run package | |
- name: Run tests | |
run: npm test -- --mode pr |