Change how stats file assets are build using emit hook #43
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: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: | |
| - "current" | |
| - "20.10" | |
| env: | |
| NODE_OPTIONS: --openssl-legacy-provider | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Print Node.js version | |
| run: | | |
| echo "Node version: $(node --version)" | |
| echo "NPM version: $(npm --version)" | |
| - name: Install dependencies and run tests | |
| run: | | |
| npm install | |
| npm run ci | |
| - name: Unset NODE_OPTIONS | |
| run: | | |
| unset NODE_OPTIONS |