Skip to content

CI/CD Pipeline updates #18

CI/CD Pipeline updates

CI/CD Pipeline updates #18

Workflow file for this run

name: "Deveel Filters CI/CD"
permissions:
contents: read
packages: write
on:
push:
branches: [main]
jobs:
build:
name: "Build (.NET ${{ matrix.dotnet-version }})"
runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: ['6.0.x', '7.0.x', '8.0.x']
steps:
- uses: actions/checkout@v4
- name: "Setup .NET Core"
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: "Restore"
run: dotnet restore
- name: "Build"
run: dotnet build -c Release --no-restore
- name: "Test"
run: dotnet test -c Release --no-restore --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Exclude="[*.XUnit]*"
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
publish:
name: "Publish Packages"
needs: build
if: github.ref == 'refs/heads/main'
uses: ./.github/workflows/publish-packages.yml

Check failure on line 47 in .github/workflows/cicd.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/cicd.yml

Invalid workflow file

error parsing called workflow ".github/workflows/cicd.yml" -> "./.github/workflows/publish-packages.yml" (source branch with sha:9283faac4f251d1dc578010583d7111e97eba78c) : workflow is not reusable as it is missing a `on.workflow_call` trigger
clean:
name: Cleaning Old Packages
needs: publish
uses: ./.github/workflows/clean-packages.yml