Skip to content

Satori CLI on Github Actions ‚Äč

If you want to test part of your workflow with Satori:

1) Go to Actions and click on New Workflow

New Workflow Action

2) Click on set up a workflow yourself

Set up a workflow

3) Include as part of your workflow the Satori Job:

yml
name: Satori CI Analysis
on:
  push:
    branches: [ "main" ]
  pull_request:
    branches: [ "main" ]
jobs:
  satori-cli_run:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: run
        env:
          SATORITOKEN: ${{ secrets.TOKEN }}
        run: |
          pip3 install satori-ci
          satori-cli config token $SATORITOKEN
          satori-cli run ./ -s

Click on Commit Changes

Satori CI workflow

4) Go to your repository Settings, click on Secrets and variables and then on Actions

5) Click on New repository secret

6) Enter SATORITOKEN as the Name of your secret and paste on the Secret your Team API Token (https://www.satori-ci.com/team-settings/)

Click on Add Secret