Bump eslint from 8.57.0 to 9.19.0 #744
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: CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
check-code: | |
name: Prettier, ESLint, and TypeScript Check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Set Up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20.x" | |
cache: npm | |
- name: Install Dependencies | |
run: npm ci | |
- name: Run ESLint and Prettier | |
run: npm run lint | |
- name: Run TypeScript Check | |
run: npm run typecheck | |
test: | |
name: Run tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Set Up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20.x" | |
cache: npm | |
- name: Install Dependencies | |
run: npm ci | |
- name: Create .env file | |
run: | | |
echo "SNS_TOPIC_ARN=arn:aws:sns:us-east-1:XXXXXXXX:aws-sns-topic" >> .env | |
echo "LOG_LEVEL=silent" >> .env | |
- name: Run tests | |
run: npm run test:coverage | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |