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 "0\n1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n11\n12" > /workspace/EPITA-TP-PROG/B2B-Training/Tests/bin/Debug/net7.0/DeleteLineTestFile.txt echo "✅ Finished" - name: "✅ Test" run: dotnet test