diff --git a/.github/workflows/sigrid-publish.yml b/.github/workflows/sigrid-publish.yml new file mode 100644 index 0000000..90265e3 --- /dev/null +++ b/.github/workflows/sigrid-publish.yml @@ -0,0 +1,18 @@ +name: sigrid-publish +on: + push: + branches: + - "main" + +jobs: + sigridci: + runs-on: ubuntu-latest + steps: + - name: Check out repository + uses: actions/checkout@v3 + - name: Download Sigrid CI + run: "git clone https://github.com/Software-Improvement-Group/sigridci.git sigridci" + - name: "Run Sigrid CI" + env: + SIGRID_CI_TOKEN: "${{ secrets.SIGRID_CI_TOKEN }}" + run: "./sigridci/sigridci/sigridci.py --customer mendix --system deeplink --source ./src/DeepLinkModule --publish" \ No newline at end of file diff --git a/.github/workflows/sigrid-pullrequest.yml b/.github/workflows/sigrid-pullrequest.yml new file mode 100644 index 0000000..f513a2b --- /dev/null +++ b/.github/workflows/sigrid-pullrequest.yml @@ -0,0 +1,28 @@ +name: sigrid-pullrequest +on: [pull_request] + +jobs: + sigridci: + runs-on: ubuntu-latest + steps: + - name: Check out repository + uses: actions/checkout@v3 + - name: Download Sigrid CI + run: "git clone https://github.com/Software-Improvement-Group/sigridci.git sigridci" + - name: "Run Sigrid CI" + env: + SIGRID_CI_TOKEN: "${{ secrets.SIGRID_CI_TOKEN }}" + run: "./sigridci/sigridci/sigridci.py --customer mendix --system deeplink --source ./src/DeepLinkModule" + - name: "Save Sigrid CI results" + if: always() + uses: actions/upload-artifact@v2 + with: + path: "sigrid-ci-output/**" + retention-days: 7 + if-no-files-found: ignore + - name: "Sigrid pull request feedback" + uses: mshick/add-pr-comment@v2 + if: always() + with: + message-id: sigrid + message-path: sigrid-ci-output/feedback.md \ No newline at end of file