From cf6decd43791abadbb8d6479c0ca2893018bbe28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Hulin?= Date: Sun, 18 Feb 2024 11:38:46 +0100 Subject: [PATCH] feat: Add Github Action for dependency freshness metric --- .../workflows/dependency-freshness-metric.yml | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/dependency-freshness-metric.yml diff --git a/.github/workflows/dependency-freshness-metric.yml b/.github/workflows/dependency-freshness-metric.yml new file mode 100644 index 000000000..4a2ce12fb --- /dev/null +++ b/.github/workflows/dependency-freshness-metric.yml @@ -0,0 +1,27 @@ +name: 📊 Dependency Freshness Metric +on: + workflow_dispatch: + + pull_request: + branches: + - main + + push: + branches: + - main + +env: + sln-path: TotalEnergies.Bachelor.Api.sln + +jobs: + build-and-test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: 📊 Gather dependency freshness metric + shell: bash + run: | + dotnet tool install -g libyear + dotnet libyear $(dotnet sln ${{ env.sln-path }} list | grep "\.csproj$") \ No newline at end of file