use data obj #14751
This file contains 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: JavaScript | |
on: | |
push: | |
jobs: | |
lint-tests: | |
name: "Lint and test the codebase" | |
environment: production | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
name: Install pnpm | |
with: | |
version: 10 | |
run_install: false | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20" | |
cache: "pnpm" | |
- name: Install dependencies | |
run: pnpm install | |
- name: Lint codebase | |
run: pnpm lint | |
- name: Test codebase | |
run: pnpm test --bail=0 --watch=false --passWithNoTests | |
- name: Build codebase | |
run: pnpm build |