25 lines
720 B
YAML
25 lines
720 B
YAML
name: Tests
|
|
|
|
on: push
|
|
|
|
jobs:
|
|
tests:
|
|
name: Unit Testing1
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
# The repo is on a custom server https://gitea.louisgallet.fr/EPITA-TP-PROG/RiderAndUnitTest.git
|
|
repository: "EPITA-TP-PROG/B2B-Training"
|
|
- uses: actions/setup-dotnet@v3
|
|
with:
|
|
dotnet-version: '7.0.x'
|
|
- name: "🏗️ Build"
|
|
run: dotnet build
|
|
- name: "🗃️ Setup file"
|
|
# Add files into /Tests/bin/Debug/net7.0 and create thisfileexist.txt
|
|
run: |
|
|
mkdir -p Tests/bin/Debug/net7.0
|
|
echo "incredible file" > thisfileexist.txt
|
|
- name: "✅ Test"
|
|
run: dotnet test |