Skip to main content

Uploading analysis results

Project settings

If you havent configured your project yet, run sylver init at the root of your project or monorepo. This command will create a sylver.yaml file at the root of your project, and a .sylver folder.

Repository token

To upload analysis results to the dashboard, you need to provide a repository token. You can find it in the project settings page: https://app.sylver.dev/settings.

Uploading analysis diagnostics

Using the Github Action

You can easily run Sylver in your CI pipeline using the Sylver Github Action. Here is a sample workflow file, assuming your repo token is stored in a repository secret named SYLVER_TOKEN

name: Sylver Check

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
runner-job:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Sylver check
uses: sylver-dev/sylver-gh-action@master
with:
token: ${{ secrets.SYLVER_TOKEN }}

Using the CLI

You can also upload the results of a local analysis by using the --upload and --token arguments:

sylver check --upload --token=YOUR_REPOSITORY_TOKEN