TRY NUGET
This commit is contained in:
@@ -1,30 +1,74 @@
|
|||||||
name: Gitea Actions Demo
|
name: Validate dotnet
|
||||||
run-name: ${{ gitea.actor }} is testing out Gitea Actions
|
|
||||||
on: [push]
|
on:
|
||||||
|
pull_request:
|
||||||
|
paths-ignore:
|
||||||
|
- '**.md'
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- releases/*
|
||||||
|
paths-ignore:
|
||||||
|
- '**.md'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Explore-Gitea-Actions:
|
setup-version:
|
||||||
runs-on: ubuntu-latest
|
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:
|
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
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v6
|
||||||
# with:
|
- name: Clear toolcache
|
||||||
# repository: Ronnie/SjkScripts
|
shell: pwsh
|
||||||
# token: ${{ gitea.token }}
|
run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
|
||||||
# github-server-url: http://192.168.1.4:3000
|
- name: Setup dotnet ${{ matrix.dotnet-version }}
|
||||||
- run: echo " The ${{ gitea.repository }} repository has been cloned to the runner."
|
uses: ./
|
||||||
- run: echo " The workflow is now ready to test your code on the runner."
|
with:
|
||||||
- name: List files in the repository
|
dotnet-version: ${{ matrix.dotnet-version }}
|
||||||
|
- name: Verify installed version
|
||||||
|
shell: pwsh
|
||||||
run: |
|
run: |
|
||||||
ls ${{ gitea.workspace }}
|
__tests__/verify-dotnet.ps1 -Patterns "^${{ matrix.dotnet-version }}"
|
||||||
- run: echo " This job's status is ${{ job.status }}."
|
|
||||||
- run: echo " HELP ME, I'M A GITHUB ACTION."
|
|
||||||
- run: echo " HELP ME PLEASE."
|
# name: Gitea Actions Demo
|
||||||
- run: echo " I'M SO TIRED."
|
# run-name: ${{ gitea.actor }} is testing out Gitea Actions
|
||||||
- run: echo " 9999999."
|
# 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
|
# name: Gitea Actions Demo
|
||||||
# run-name: ${{ gitea.actor }} is testing out Gitea Actions
|
# run-name: ${{ gitea.actor }} is testing out Gitea Actions
|
||||||
# on: [push]
|
# on: [push]
|
||||||
|
|||||||
Reference in New Issue
Block a user