Prevent duplicated orders and attendees as a result #3954
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: 'JS Tests' | |
on: | |
pull_request: | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
suite: | |
- tests/slr_jest | |
- src/resources/js | |
- src/modules | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1000 | |
submodules: recursive | |
- name: Check for .nvmrc file | |
id: check-nvmrc | |
run: | | |
if test -f "${{ github.workspace }}/.nvmrc"; then | |
echo "exists=true" >> $GITHUB_OUTPUT | |
else | |
echo "exists=false" >> $GITHUB_OUTPUT | |
fi | |
- uses: actions/setup-node@v3 | |
if: steps.check-nvmrc.outputs.exists == 'true' | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'npm' | |
cache-dependency-path: package-lock.json | |
- name: Install node modules | |
run: npm ci | |
- name: Run jest task | |
run: npx jest ${{ matrix.suite }}/ |