diff --git a/.github/workflows/anubis-eval-cd.yaml b/.github/workflows/anubis-eval-cd.yaml index a275f2c..21c3ec4 100644 --- a/.github/workflows/anubis-eval-cd.yaml +++ b/.github/workflows/anubis-eval-cd.yaml @@ -27,6 +27,9 @@ env: jobs: build: runs-on: ubuntu-latest + defaults: + run: + working-directory: anubis-eval steps: - uses: actions/checkout@v4 @@ -40,14 +43,10 @@ jobs: rust-version: '1.72.0' - name: Build - run: | - cd anubis-eval - cargo build --release + run: cargo build --release - name: Test - run: | - cd anubis-eval - cargo test --all-features + run: cargo test --all-features deploy: runs-on: ubuntu-latest diff --git a/.github/workflows/anubis-eval-ci.yaml b/.github/workflows/anubis-eval-ci.yaml index a65e0aa..19521a0 100644 --- a/.github/workflows/anubis-eval-ci.yaml +++ b/.github/workflows/anubis-eval-ci.yaml @@ -14,6 +14,9 @@ on: jobs: build: runs-on: ubuntu-latest + defaults: + run: + working-directory: anubis-eval steps: - uses: actions/checkout@v4 @@ -27,11 +30,7 @@ jobs: rust-version: '1.72.0' - name: Build - run: | - cd anubis-eval - cargo build --release + run: cargo build --release - name: Test - run: | - cd anubis-eval - cargo test --all-features + run: cargo test --all-features diff --git a/.github/workflows/enki-problems-cd.yaml b/.github/workflows/enki-problems-cd.yaml index 2e353a3..5338375 100644 --- a/.github/workflows/enki-problems-cd.yaml +++ b/.github/workflows/enki-problems-cd.yaml @@ -27,6 +27,9 @@ env: jobs: build: runs-on: ubuntu-latest + defaults: + run: + working-directory: enki-problems steps: - uses: actions/checkout@v4 @@ -36,14 +39,11 @@ jobs: dotnet-version: '7.0.x' - name: Build run: | - dotnet restore "enki-problems/src/EnkiProblems.HttpApi.Host/EnkiProblems.HttpApi.Host.csproj" - dotnet restore "enki-problems/test/EnkiProblems.Application.Tests/EnkiProblems.Application.Tests.csproj" - cd enki-problems + dotnet restore "src/EnkiProblems.HttpApi.Host/EnkiProblems.HttpApi.Host.csproj" + dotnet restore "test/EnkiProblems.Application.Tests/EnkiProblems.Application.Tests.csproj" dotnet build --no-restore - name: Test - run: | - cd enki-problems - dotnet test -e DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false + run: dotnet test -e DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false deploy: runs-on: ubuntu-latest diff --git a/.github/workflows/enki-problems-ci.yaml b/.github/workflows/enki-problems-ci.yaml index 62a6d47..454ef7f 100644 --- a/.github/workflows/enki-problems-ci.yaml +++ b/.github/workflows/enki-problems-ci.yaml @@ -14,6 +14,9 @@ on: jobs: build: runs-on: ubuntu-latest + defaults: + run: + working-directory: enki-problems steps: - uses: actions/checkout@v4 @@ -23,11 +26,8 @@ jobs: dotnet-version: '7.0.x' - name: Build run: | - dotnet restore "enki-problems/src/EnkiProblems.HttpApi.Host/EnkiProblems.HttpApi.Host.csproj" - dotnet restore "enki-problems/test/EnkiProblems.Application.Tests/EnkiProblems.Application.Tests.csproj" - cd enki-problems + dotnet restore "src/EnkiProblems.HttpApi.Host/EnkiProblems.HttpApi.Host.csproj" + dotnet restore "test/EnkiProblems.Application.Tests/EnkiProblems.Application.Tests.csproj" dotnet build --no-restore - name: Test - run: | - cd enki-problems - dotnet test -e DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false \ No newline at end of file + run: dotnet test -e DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false \ No newline at end of file diff --git a/.github/workflows/hermes-tests-cd.yaml b/.github/workflows/hermes-tests-cd.yaml index 84aef83..5009c1a 100644 --- a/.github/workflows/hermes-tests-cd.yaml +++ b/.github/workflows/hermes-tests-cd.yaml @@ -28,6 +28,9 @@ env: jobs: build: runs-on: ubuntu-latest + defaults: + run: + working-directory: hermes-tests steps: - uses: actions/checkout@v4 @@ -39,18 +42,14 @@ jobs: - name: Create logs/test.log file run: | - mkdir -p hermes-tests/logs - touch hermes-tests/logs/test.log + mkdir -p logs + touch logs/test.log - name: Get dependencies - run: | - cd hermes-tests - dart pub get + run: dart pub get - name: Test - run: | - cd hermes-tests - dart test + run: dart test deploy: runs-on: ubuntu-latest diff --git a/.github/workflows/hermes-tests-ci.yaml b/.github/workflows/hermes-tests-ci.yaml index 0df15d6..5c1cdf3 100644 --- a/.github/workflows/hermes-tests-ci.yaml +++ b/.github/workflows/hermes-tests-ci.yaml @@ -17,6 +17,9 @@ env: jobs: build: runs-on: ubuntu-latest + defaults: + run: + working-directory: hermes-tests steps: - uses: actions/checkout@v4 @@ -28,15 +31,11 @@ jobs: - name: Create logs/test.log file run: | - mkdir -p hermes-tests/logs - touch hermes-tests/logs/test.log + mkdir -p logs + touch logs/test.log - name: Get dependencies - run: | - cd hermes-tests - dart pub get + run: dart pub get - name: Test - run: | - cd hermes-tests - dart test + run: dart test diff --git a/.github/workflows/quetzalcoatl-auth-cd.yaml b/.github/workflows/quetzalcoatl-auth-cd.yaml index 929b390..3e727dd 100644 --- a/.github/workflows/quetzalcoatl-auth-cd.yaml +++ b/.github/workflows/quetzalcoatl-auth-cd.yaml @@ -27,6 +27,9 @@ env: jobs: build: runs-on: ubuntu-latest + defaults: + run: + working-directory: quetzalcoatl-auth steps: - uses: actions/checkout@v4 @@ -36,12 +39,11 @@ jobs: dotnet-version: '7.0.x' - name: Build run: | - dotnet restore "quetzalcoatl-auth/Bootstrapper/Bootstrapper.csproj" - dotnet restore "quetzalcoatl-auth/Tests.Integration/Tests.Integration.csproj" - cd quetzalcoatl-auth + dotnet restore "Bootstrapper/Bootstrapper.csproj" + dotnet restore "Tests.Integration/Tests.Integration.csproj" dotnet build --no-restore - name: Test - run: dotnet test -e ASPNETCORE_ENVIRONMENT=Testing "quetzalcoatl-auth/Tests.Integration/Tests.Integration.csproj" + run: dotnet test -e ASPNETCORE_ENVIRONMENT=Testing deploy: runs-on: ubuntu-latest diff --git a/.github/workflows/quetzalcoatl-auth-ci.yaml b/.github/workflows/quetzalcoatl-auth-ci.yaml index 0bb42ac..13f9b2d 100644 --- a/.github/workflows/quetzalcoatl-auth-ci.yaml +++ b/.github/workflows/quetzalcoatl-auth-ci.yaml @@ -14,6 +14,9 @@ on: jobs: build: runs-on: ubuntu-latest + defaults: + run: + working-directory: quetzalcoatl-auth steps: - uses: actions/checkout@v4 @@ -23,9 +26,8 @@ jobs: dotnet-version: '7.0.x' - name: Build run: | - dotnet restore "quetzalcoatl-auth/Bootstrapper/Bootstrapper.csproj" - dotnet restore "quetzalcoatl-auth/Tests.Integration/Tests.Integration.csproj" - cd quetzalcoatl-auth + dotnet restore "Bootstrapper/Bootstrapper.csproj" + dotnet restore "Tests.Integration/Tests.Integration.csproj" dotnet build --no-restore - name: Test - run: dotnet test -e ASPNETCORE_ENVIRONMENT=Testing "quetzalcoatl-auth/Tests.Integration/Tests.Integration.csproj" \ No newline at end of file + run: dotnet test -e ASPNETCORE_ENVIRONMENT=Testing \ No newline at end of file