github(actions): fix main to master #1
This file contains hidden or 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: Jest Tests | |
| on: | |
| push: | |
| branches: | |
| - master # Or your default branch | |
| pull_request: | |
| branches: | |
| - master # Or your default branch | |
| jobs: | |
| run-jest-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 # Use the latest version | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 # Use the latest version | |
| with: | |
| node-version: "22.14.0" # Specify your desired Node.js version | |
| - name: Install dependencies | |
| run: npm ci # Use npm ci for clean installations in CI | |
| - name: Run Jest tests | |
| run: npm test |