Louis fd82fca1e7
Some checks failed
Tests / Unit Testing1 (push) Failing after 44s
ci: 💚 Update file creation
2023-11-02 21:17:34 +01:00

27 lines
1.0 KiB
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: |
echo "incredible file" > /workspace/EPITA-TP-PROG/B2B-Training/Tests/bin/Debug/net7.0/thisfileexist.txt
echo -n "Cestvraimentmagnifique" > /workspace/EPITA-TP-PROG/B2B-Training/Tests/bin/Debug/net7.0/MyReplaceTestFile.txt
echo -n "1\n2\n3\n4\n5\n6\n7\n\8\n9\n10\n11\n12" > /workspace/EPITA-TP-PROG/B2B-Training/Tests/bin/Debug/net7.0/DeleteLineTestFile.txt
echo "✅ Finished"
- name: "✅ Test"
run: dotnet test