Merge pull request #69 from GreepTheSheep/html-formatter #150
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: Unit Tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'src/**.js' | |
| - 'test/**.test.js' | |
| - 'package.json' | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - 'src/**.js' | |
| - 'test/**.test.js' | |
| - 'package.json' | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| name: Unit Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v7 | |
| - name: Install Node | |
| uses: actions/setup-node@v7 | |
| with: | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run tests | |
| run: npm test |