Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create deep-source.yml #129

Merged
merged 6 commits into from
Jan 12, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/deep-source.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Deep Source

on:
push:
branches:
- main
pull_request:
workflow_dispatch:

guibranco marked this conversation as resolved.
Show resolved Hide resolved
permissions:
contents: read
checks: write

jobs:
DeepSource:
name: Deep Source Coverage report
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Install DeepSource scanner
run: curl https://deepsource.io/cli | sh
guibranco marked this conversation as resolved.
Show resolved Hide resolved

- name: Set up Node.js 22
uses: actions/setup-node@v4
with:
node-version: 22.x
guibranco marked this conversation as resolved.
Show resolved Hide resolved

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Test and coverage
run: npm run test:coverage

- name: Build and analyze
env:
DEEPSOURCE_DSN: ${{ secrets.DEEPSOURCE_DSN }}
run: ./bin/deepsource report --analyzer test-coverage --key javascript --value-file ./coverage/lcov.info
Fixed Show fixed Hide fixed
Loading