Revive for modern Node.js: Node-API, vendored Lua, tests, CI #1
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: CI | |
| on: | |
| push: | |
| branches: [master, main] | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| name: Node ${{ matrix.node }} on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| # macos-latest is arm64, which is exactly the configuration that could not | |
| # build before Lua was vendored. | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| node: [20, 22, 24] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| # Compiles the addon along with the vendored Lua and LuaFileSystem sources. | |
| - name: Install and build | |
| run: npm install | |
| - name: Test | |
| run: npm test | |
| - name: Check the published tarball contents | |
| run: npm pack --dry-run |