From 213a4de2eb54ccd053bcb8364947b081f87dc1df Mon Sep 17 00:00:00 2001 From: Binary Alley Date: Fri, 4 Oct 2024 21:30:10 +0300 Subject: [PATCH 1/2] Makes pull requests aimed at master to run tests before merging --- .github/workflows/run-tests.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/run-tests.yml diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml new file mode 100644 index 00000000..ccba70cd --- /dev/null +++ b/.github/workflows/run-tests.yml @@ -0,0 +1,22 @@ +name: Run All Tests + +on: + pull_request: + branches: + - master + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up .NET + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '8.0.x' + - name: Restore dependencies + run: dotnet restore + - name: Build + run: dotnet build --no-restore + - name: Run tests + run: dotnet test --no-build --verbosity normal \ No newline at end of file From bd9cff5b95551724a6d519fd239a0bc891d3306e Mon Sep 17 00:00:00 2001 From: Binary Alley Date: Fri, 4 Oct 2024 21:40:43 +0300 Subject: [PATCH 2/2] Updates location of referenced paths in test running GitHub action --- .github/workflows/run-tests.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index ccba70cd..3c6423c2 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -15,8 +15,8 @@ jobs: with: dotnet-version: '8.0.x' - name: Restore dependencies - run: dotnet restore + run: dotnet restore src/Lumina.sln - name: Build - run: dotnet build --no-restore + run: dotnet build src/Lumina.sln --no-restore - name: Run tests - run: dotnet test --no-build --verbosity normal \ No newline at end of file + run: dotnet test src/Lumina.sln --no-build --verbosity normal \ No newline at end of file