๐ DeepSource AI ์ ์ฉ #2
Workflow file for this run
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: DeepSource Code Review | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
jobs: | |
analyze: | |
name: Analyze | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '18' | |
- name: Install dependencies | |
run: npm ci | |
- name: Run linter | |
run: npm run lint | |
- name: Run tests and generate coverage | |
run: npm test -- --coverage | |
- name: Upload coverage to DeepSource | |
uses: deepsourcelabs/test-coverage-action@master | |
with: | |
key: javascript | |
coverage-file: ./coverage/lcov.info | |
dsn: ${{ secrets.DEEPSOURCE_DSN }} | |
- name: DeepSource Analyze | |
uses: deepsourcelabs/analyze-action@v1 | |
with: | |
dsn: ${{ secrets.DEEPSOURCE_DSN }} |