Skip to content

Commit

Permalink
refactor+ops: specify project dir as default per pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
WarriorsSami committed Jun 22, 2024
1 parent 1557733 commit 3a80e1c
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 48 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/anubis-eval-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ env:
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: anubis-eval

steps:
- uses: actions/checkout@v4
Expand All @@ -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
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/anubis-eval-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ on:
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: anubis-eval

steps:
- uses: actions/checkout@v4
Expand All @@ -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
12 changes: 6 additions & 6 deletions .github/workflows/enki-problems-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ env:
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: enki-problems

steps:
- uses: actions/checkout@v4
Expand All @@ -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
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/enki-problems-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ on:
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: enki-problems

steps:
- uses: actions/checkout@v4
Expand All @@ -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
run: dotnet test -e DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false
15 changes: 7 additions & 8 deletions .github/workflows/hermes-tests-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ env:
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: hermes-tests

steps:
- uses: actions/checkout@v4
Expand All @@ -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
Expand Down
15 changes: 7 additions & 8 deletions .github/workflows/hermes-tests-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ env:
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: hermes-tests

steps:
- uses: actions/checkout@v4
Expand All @@ -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
10 changes: 6 additions & 4 deletions .github/workflows/quetzalcoatl-auth-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ env:
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: quetzalcoatl-auth

steps:
- uses: actions/checkout@v4
Expand All @@ -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
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/quetzalcoatl-auth-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ on:
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: quetzalcoatl-auth

steps:
- uses: actions/checkout@v4
Expand All @@ -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"
run: dotnet test -e ASPNETCORE_ENVIRONMENT=Testing

0 comments on commit 3a80e1c

Please sign in to comment.