From e2640e4a5c7608482e21ca13f12be694c9ed7eb2 Mon Sep 17 00:00:00 2001 From: ronnie Date: Mon, 6 Apr 2026 00:06:09 -0400 Subject: [PATCH] TRY NUGET --- .gitea/workflows/test.yml | 88 +++++++++++++++++++++++++++++---------- 1 file changed, 66 insertions(+), 22 deletions(-) diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 918633d..3f4bd41 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -1,30 +1,74 @@ -name: Gitea Actions Demo -run-name: ${{ gitea.actor }} is testing out Gitea Actions -on: [push] +name: Validate dotnet + +on: + pull_request: + paths-ignore: + - '**.md' + push: + branches: + - main + - releases/* + paths-ignore: + - '**.md' jobs: - Explore-Gitea-Actions: - runs-on: ubuntu-latest + setup-version: + runs-on: ${{ matrix.operating-system }} + strategy: + fail-fast: false + matrix: + operating-system: + [ + ubuntu-latest, + ubuntu-22.04, + # windows-latest, + # macos-15-intel, + # macos-latest + ] + dotnet-version: ['10.0']//['8.0', '9.0', '10.0'] steps: - - run: echo " The job was automatically triggered by a ${{ gitea.event_name }} event." - - run: echo " This job is now running on a ${{ runner.os }} server hosted by Gitea!" - - run: echo " The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." - name: Checkout - uses: actions/checkout@v3 - # with: - # repository: Ronnie/SjkScripts - # token: ${{ gitea.token }} - # github-server-url: http://192.168.1.4:3000 - - run: echo " The ${{ gitea.repository }} repository has been cloned to the runner." - - run: echo " The workflow is now ready to test your code on the runner." - - name: List files in the repository + uses: actions/checkout@v6 + - name: Clear toolcache + shell: pwsh + run: __tests__/clear-toolcache.ps1 ${{ runner.os }} + - name: Setup dotnet ${{ matrix.dotnet-version }} + uses: ./ + with: + dotnet-version: ${{ matrix.dotnet-version }} + - name: Verify installed version + shell: pwsh run: | - ls ${{ gitea.workspace }} - - run: echo " This job's status is ${{ job.status }}." - - run: echo " HELP ME, I'M A GITHUB ACTION." - - run: echo " HELP ME PLEASE." - - run: echo " I'M SO TIRED." - - run: echo " 9999999." + __tests__/verify-dotnet.ps1 -Patterns "^${{ matrix.dotnet-version }}" + + +# name: Gitea Actions Demo +# run-name: ${{ gitea.actor }} is testing out Gitea Actions +# on: [push] + +# jobs: +# Explore-Gitea-Actions: +# runs-on: ubuntu-latest +# steps: +# - run: echo " The job was automatically triggered by a ${{ gitea.event_name }} event." +# - run: echo " This job is now running on a ${{ runner.os }} server hosted by Gitea!" +# - run: echo " The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." +# - name: Checkout +# uses: actions/checkout@v3 +# # with: +# # repository: Ronnie/SjkScripts +# # token: ${{ gitea.token }} +# # github-server-url: http://192.168.1.4:3000 +# - run: echo " The ${{ gitea.repository }} repository has been cloned to the runner." +# - run: echo " The workflow is now ready to test your code on the runner." +# - name: List files in the repository +# run: | +# ls ${{ gitea.workspace }} +# - run: echo " This job's status is ${{ job.status }}." +# - run: echo " HELP ME, I'M A GITHUB ACTION." +# - run: echo " HELP ME PLEASE." +# - run: echo " I'M SO TIRED." +# - run: echo " 9999999." # name: Gitea Actions Demo # run-name: ${{ gitea.actor }} is testing out Gitea Actions # on: [push]