TRY NUGET

This commit is contained in:
2026-04-06 00:06:09 -04:00
parent 38579f8f02
commit e2640e4a5c

View File

@@ -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]