Louis df3e0cfc50
Some checks failed
CI / build (push) Has been cancelled
ci: 💚 fix and the ci pass localy
2023-11-30 10:19:55 +01:00

39 lines
1.1 KiB
YAML

name: CI
on:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Get Tag Name & REPO Url
uses: olegtarasov/get-tag@v2.1.2
id: tagName
with:
tagRegex: "test-(.+)" # Optional. Returns specified group text as tag name. Full tag string is returned if regex is not defined.
tagRegexGroup: 1 # Optional. Default is 1.
failOnNoTag: true # Optional. Default is false.
- name: Show tag name
run: echo ${{ steps.tagName.outputs.tag }}
- name: print token
run: echo ${{ secrets.TOKEN_GITEA }}
- name: Checkout code
uses: actions/checkout@v3
# Clone the URL OF REMOTE PROJECT to test
with:
repository: ${{ steps.tagName.outputs.tag }}
# Set default branch
ref: master
token: ${{ secrets.TOKEN_GITEA }}
github-server-url: 'https://gitea.louisgallet.fr'
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
- name: "🏗️ Build"
run: dotnet build
- name: "✅ Test"
run: dotnet test