fix file format #26
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: TypeScript Test and Lint | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test_and_lint: | |
runs-on: ubuntu-latest | |
env: | |
OPENAI_API_KEY: "dummy" | |
OPENAI_MAX_TOKENS: 1000 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 17.x | |
cache: 'npm' | |
- name: Install dependencies | |
run: npm ci | |
- name: Run Jest tests | |
run: npm test | |
- name: Run ESLint lint | |
run: npm run lint |