Added esbuild to bundle source code #140
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: Test | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| jobs: | |
| run-tests: | |
| name: Run tests | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [windows-latest, ubuntu-latest, macos-latest] | |
| env: | |
| ANDREAS_TEST: true | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: .nvmrc | |
| - name: Install dependencies | |
| run: npm --color ci | |
| - name: Compile | |
| run: npm --color run compile | |
| - name: Run lint (Linux) | |
| run: npm --color run lint | |
| if: runner.os == 'Linux' | |
| - name: Run tests (Linux) | |
| run: xvfb-run -a npm --color run test:ci | |
| if: runner.os == 'Linux' | |
| - name: Run tests (Windows, MacOS) | |
| run: npm --color run test:ci | |
| if: runner.os != 'Linux' |