diff --git a/.github/workflows/duely.yml b/.github/workflows/duely.yml new file mode 100644 index 0000000..5583782 --- /dev/null +++ b/.github/workflows/duely.yml @@ -0,0 +1,20 @@ +name: Duely +on: + pull_request: + paths: + - Duely/** +defaults: + run: + shell: bash + working-directory: Duely +jobs: + Test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Setup .NET 8.0.x + uses: actions/setup-dotnet@v4 + with: + dotnet-version: "8.0.x" + - name: Run tests + run: dotnet test Duely.sln \ No newline at end of file diff --git a/.github/workflows/exesh.yml b/.github/workflows/exesh.yml new file mode 100644 index 0000000..a7bbb01 --- /dev/null +++ b/.github/workflows/exesh.yml @@ -0,0 +1,20 @@ +name: Exesh +on: + pull_request: + paths: + - Exesh/** +defaults: + run: + shell: bash + working-directory: Exesh +jobs: + Test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Setup Go + uses: actions/setup-go@v6 + with: + go-version: "^1.24.0" + - name: Run tests + run: go test -v ./... diff --git a/.github/workflows/taski.yml b/.github/workflows/taski.yml new file mode 100644 index 0000000..0b3fab2 --- /dev/null +++ b/.github/workflows/taski.yml @@ -0,0 +1,20 @@ +name: Taski +on: + pull_request: + paths: + - Taski/** +defaults: + run: + shell: bash + working-directory: Taski +jobs: + Test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Setup Go + uses: actions/setup-go@v6 + with: + go-version: "^1.24.0" + - name: Run tests + run: go test -v ./... diff --git a/Duely/Dockerfile b/Duely/Dockerfile index a90d9ac..52e9289 100644 --- a/Duely/Dockerfile +++ b/Duely/Dockerfile @@ -10,7 +10,7 @@ RUN dotnet build Duely.sln -c Release --no-restore RUN dotnet publish src/Duely/Duely.csproj -c Release -o /out --no-build FROM base AS migration -RUN dotnet tool install --global dotnet-ef +RUN dotnet tool install --global dotnet-ef --version 9.0.10 RUN dotnet build Duely.sln -c Release --no-restore RUN dotnet publish src/Duely/Duely.csproj -c Release -o /migration-out --no-build diff --git a/Duely/Duely.sln b/Duely/Duely.sln index f1da5be..350522f 100644 --- a/Duely/Duely.sln +++ b/Duely/Duely.sln @@ -22,6 +22,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Duely.Domain.Services", "sr EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Duely.Application.BackgroundJobs", "src\Duely.Application.BackgroundJobs\Duely.Application.BackgroundJobs.csproj", "{B1A348B2-0D59-489D-8EB6-230620CA5F35}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Duely.Application.Tests", "tests\Duely.Application.Tests\Duely.Application.Tests.csproj", "{34A5A4A8-2D11-43DE-AB69-F0839089600D}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -72,5 +74,9 @@ Global {B1A348B2-0D59-489D-8EB6-230620CA5F35}.Debug|Any CPU.Build.0 = Debug|Any CPU {B1A348B2-0D59-489D-8EB6-230620CA5F35}.Release|Any CPU.ActiveCfg = Release|Any CPU {B1A348B2-0D59-489D-8EB6-230620CA5F35}.Release|Any CPU.Build.0 = Release|Any CPU + {34A5A4A8-2D11-43DE-AB69-F0839089600D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {34A5A4A8-2D11-43DE-AB69-F0839089600D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {34A5A4A8-2D11-43DE-AB69-F0839089600D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {34A5A4A8-2D11-43DE-AB69-F0839089600D}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection EndGlobal diff --git a/Exesh/example/main.go b/Exesh/example/main.go index 8bd5644..90cac8c 100644 --- a/Exesh/example/main.go +++ b/Exesh/example/main.go @@ -1,3 +1,5 @@ +//go:build ignore + package main import ( diff --git a/Taski/internal/usecase/task/usecase/random/usecase.go b/Taski/internal/usecase/task/usecase/random/usecase.go index 8ccc717..fd32f92 100644 --- a/Taski/internal/usecase/task/usecase/random/usecase.go +++ b/Taski/internal/usecase/task/usecase/random/usecase.go @@ -22,7 +22,7 @@ func NewUseCase(log *slog.Logger) *UseCase { func (uc *UseCase) Random(query Query) (taskID task.ID, err error) { // temp: hardcode only one existing task id if err = taskID.FromString("7d971f50363cf0aebbd87d971f50363cf0aebbd8"); err != nil { - err = fmt.Errorf("failed to parse task id: %w") + err = fmt.Errorf("failed to parse task id: %w", err) return } return