Modernize runtime tooling and upgrade dependencies #129
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: Simple Comment | |
| on: | |
| pull_request: | |
| branches: [master] | |
| jobs: | |
| test-netlify-functions: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js 22.x | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| - name: Install | |
| run: | | |
| npm install yarn@^1 --no-package-lock -g | |
| yarn --frozen-lockfile --production=false --ignore-optional | |
| - name: Lint | |
| run: yarn run lint | |
| - name: Format | |
| run: yarn run prettier --list-different . | |
| - name: Build Netlify functions | |
| run: yarn run build:netlify | |
| - name: Test Netlify functions | |
| env: | |
| # @shelf/jest-mongodb's bundled mongodb-memory-server version in this repo | |
| # does not support MONGOMS_DISTRO; pin a known-valid download URL instead. | |
| MONGOMS_DOWNLOAD_URL: https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu2204-6.0.14.tgz | |
| run: | | |
| node ./scripts/createTestEnv.mjs | |
| yarn test |