Merge pull request #38 from maxwroc/RemoveJestScreenshot #49
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: | |
push: | |
# branches to consider in the event; optional, defaults to all | |
branches: | |
- master | |
# pull_request event is required only for autolabeler | |
pull_request: | |
branches: | |
- master | |
# # Only following types are handled by the action, but one can default to all as well | |
# types: [opened, reopened, synchronize] | |
jobs: | |
pull_request_tests: | |
runs-on: windows-latest | |
steps: | |
# build files | |
- name: Checkout files | |
uses: actions/checkout@v2 | |
- name: NodeJS setup | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 20 | |
registry-url: https://registry.npmjs.org/ | |
- name: Installing dependencies | |
run: npm ci --legacy-peer-deps | |
- name: Build dev | |
run: npm run build | |
- name: Testing | |
run: npm run test |