dev(github): add workflow and tests #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: Test (nvm-based runner) | |
| on: | |
| workflow_dispatch: {} | |
| push: | |
| branches: ["master"] | |
| jobs: | |
| nvm-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install nvm and run `scripts/test-all.sh` | |
| run: | | |
| # Install nvm (script uses ~/.nvm/nvm.sh) | |
| curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash | |
| # shellcheck disable=SC1090 | |
| . "$HOME/.nvm/nvm.sh" | |
| chmod +x scripts/test-all.sh | |
| ./scripts/test-all.sh | |
| - name: Upload coverage artifact | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage-nvm | |
| path: coverage |