Update dependabot.yml (#192) #211
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: Tests for PR | |
on: | |
# Trigger the workflow on push or pull request, | |
# but only for the main branch | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
name: 'Run tests' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: '16' | |
- uses: actions/checkout@v2 | |
- name: 'Cache node_modules' | |
uses: actions/cache@v2 | |
with: | |
path: | | |
node_modules | |
package-lock.json | |
key: ${{ runner.os }}-node-v16-${{ hashFiles('package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node-v16- | |
- name: Install Dependencies | |
run: npm install | |
- name: Run Build | |
run: npm run build | |
- name: Run Non-Ui Tests | |
run: npm run test-no-ui |