Skip to content

Instantly share code, notes, and snippets.

@wk-j
Created December 3, 2020 16:21
Show Gist options
  • Save wk-j/433b6e444b7b5c5954ae1bf768904125 to your computer and use it in GitHub Desktop.
Save wk-j/433b6e444b7b5c5954ae1bf768904125 to your computer and use it in GitHub Desktop.
Leak
name: Infer
on:
push:
env:
project: MyApp
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.100
- name: Get the version
id: get-version
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
- name: Build backend
run: |
dotnet build src/$project -o __publish__/$project
- name: Run Infor#
uses: microsoft/infersharpaction@v0.2
id: runinfersharp
with:
binary-path: __publish__/${{ env.project }}
- name: Infer# analysis result
run: |
echo "${{ steps.runinfersharp.outputs.results }}"
- name: Archive artifacts
uses: actions/upload-artifact@v2
with:
name: dist-without-markdown
path: |
infer-out/*.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment