Skip to content

Feat/initial plugin system #173

Feat/initial plugin system

Feat/initial plugin system #173

Workflow file for this run

name: CI
on:
push:
branches: [master, main]
pull_request:
branches: [master, main]
permissions:
contents: write
statuses: write
checks: write
pull-requests: write
jobs:
set-version:
name: Set Version
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/dotnet/sdk:10.0
outputs:
semVer: ${{ steps.gitversion.outputs.semVer }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: install deps
run: |
apt-get update && apt-get install -y jq git
git config --global --add safe.directory "$GITHUB_WORKSPACE"
git config user.email ${{ github.actor }}[email protected]
git config user.name ${{ github.actor }}
- name: Install GitVersion
uses: gittools/actions/gitversion/[email protected]
with:
versionSpec: "6.x"
- name: Set SemVer Version
uses: gittools/actions/gitversion/[email protected]
id: gitversion
- name: echo VERSIONS
run: |
echo "REVISION -> $GITHUB_SHA"
echo "VERSION -> $GITVERSION_SEMVER"
test:
runs-on: ubuntu-latest
name: Run Tests
needs: set-version
env:
SEMVER: ${{ needs.set-version.outputs.semVer }}
GIT_TAG: ${{ needs.set-version.outputs.semVer }}
GOVCS: false
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Install Eirctl
uses: ensono/actions/[email protected]
with:
version: 0.9.3
isPrerelease: false
- name: Run Lint
run: |
eirctl run pipeline lints
- name: Run Tests
run: |
eirctl run pipeline gha:unit:test
- name: Publish Junit style Test Report
uses: mikepenz/action-junit-report@v4
if: always() # always run even if the previous step fails
with:
report_paths: "**/.coverage/report-junit.xml"
- name: Analyze with SonarCloud
uses: SonarSource/sonarqube-scan-action@v6
env:
# Needed to get PR information
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Generate a token on Sonarcloud.io, add it to the secrets of this repo with the name SONAR_TOKEN (Settings > Secrets > Actions > add new repository secret)
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
projectBaseDir: .
args: >
-Dsonar.projectVersion=${{ needs.set-version.outputs.semVer }}
-Dsonar.working.directory=.scannerwork
-Dsonar.scm.provider=git