A github action to check if the source code can be analyzed #90
Workflow file for this run
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: Run tests | |
| on: [push, pull_request] | |
| jobs: | |
| test: | |
| timeout-minutes: 60 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: lts/hydrogen | |
| - name: Setup Clojure | |
| uses: DeLaGuardo/setup-clojure@master | |
| with: | |
| cli: latest | |
| - name: Cache deps dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.m2/repository | |
| key: ${{ runner.os }}-clojure-${{ hashFiles('**/deps.edn') }} | |
| restore-keys: | | |
| ${{ runner.os }}-clojure | |
| - name: Install dependencies for unit tests | |
| run: npm ci | |
| - name: Unit tests | |
| run: ./bin/kaocha | |
| - name: Install dependencies | |
| working-directory: ./playwright | |
| run: npm ci | |
| - name: Install Playwright Browsers | |
| working-directory: ./playwright | |
| run: npx playwright install --with-deps | |
| - name: Run Playwright tests | |
| working-directory: ./playwright | |
| run: npm test | |
| - uses: actions/upload-artifact@v4 | |
| if: ${{ !cancelled() }} | |
| with: | |
| name: playwright-report | |
| path: playwright/playwright-report/ | |
| retention-days: 30 |