Bump Node engine to >=24.0.0 and Node version to 24.18.0 #11
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
| # https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs | |
| name: CI | |
| on: | |
| push: | |
| branches: ['main'] | |
| pull_request: | |
| branches: ['main'] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| env: | |
| # @devvit/test pulls in redis-memory-server, which by default downloads | |
| # and compiles Redis (plus modules) from source on install and on first | |
| # test run. That source build is slow and unreliable in CI. Point it at | |
| # the prebuilt redis-server we install below: this both skips the | |
| # install-time compile and makes the tests use the system binary. | |
| REDISMS_SYSTEM_BINARY: /usr/bin/redis-server | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7.0.0 | |
| - name: Install Node.js | |
| uses: actions/setup-node@v6.4.0 | |
| with: | |
| node-version: 24.18.0 | |
| - name: Install Redis | |
| run: sudo apt-get update && sudo apt-get install -y redis-server | |
| - name: Install Dependencies | |
| run: npm install --no-fund | |
| - parallel: | |
| - name: Typecheck | |
| run: npm run test:types | |
| - name: Lint | |
| run: npm run lint | |
| - name: Unit Test | |
| run: npm run test:unit | |
| - name: Build | |
| run: npm run build |