Skip to content

CoinFabrik/stacy-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stacy Action

Full example to integrate in GitHub Actions

on:
  pull_request:
    branches: [ main ]

jobs:
  Comment Stacy output in PR:
    runs-on: ubuntu-latest
    permissions:
      pull-requests: write
      contents: write
      repository-projects: write
    steps:
      - name: Checkout repository
        uses: actions/checkout@v2

      - name: Run Stacy Analyzer
        uses: coinfabrik/[email protected]
        with:
          target: 'tests/'
      - uses: mshick/[email protected]
        with:
          message-path:  ${{ github.workspace }}/report.out

This example, if put in .github/workflows/, will run Stacy in the target: folder (in this case, the test folder) and comment the output in the PR.