[INT-1] visual-snapshots: add ESM support for Jest #500
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: JS (build) | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'visual-js/**' | |
| - .github/workflows/js-build.yml | |
| pull_request: | |
| paths: | |
| - 'visual-js/**' | |
| - .github/workflows/js-build.yml | |
| defaults: | |
| run: | |
| working-directory: visual-js | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node 18 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 18.x | |
| - name: Build | |
| run: | | |
| npm install | |
| npm run lint --workspaces --if-present | |
| npm run build --workspaces --if-present | |
| npm run test --workspaces --if-present | |
| env: | |
| SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }} | |
| SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }} |