From ada2a0ceb348dea0bbf7c8ccaf7fb1caf3e96dd0 Mon Sep 17 00:00:00 2001 From: js0ny Date: Thu, 22 Jan 2026 08:01:15 +0000 Subject: [PATCH] ci(test): Test of CI --- .github/workflows/ci.yml | 22 +++++++++++++++++++ .justfile | 5 +++++ .../service/DroneInfoService.java | 1 - 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..5f099c8 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,22 @@ +name: Polyglot CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + + +jobs: + tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: cachix/install-nix-action@v25 + with: + nix_path: nixpkgs=channel:nixos-unstable + - uses: cachix/cachix-action@v14 + # with: + # name: mycache + - run: chmod +x ./ilp-rest-service/gradlews + - run: nix develop --command just all diff --git a/.justfile b/.justfile index 49c0e6a..70d991e 100644 --- a/.justfile +++ b/.justfile @@ -1,3 +1,8 @@ +all: + @just format + @just static-analysis + @just test + format: cd ./drone-black-box && go fmt fd --extension java --exec google-java-format --replace --aosp {} diff --git a/ilp-rest-service/src/main/java/io/github/js0ny/ilp_coursework/service/DroneInfoService.java b/ilp-rest-service/src/main/java/io/github/js0ny/ilp_coursework/service/DroneInfoService.java index 44719f2..cff9ba3 100644 --- a/ilp-rest-service/src/main/java/io/github/js0ny/ilp_coursework/service/DroneInfoService.java +++ b/ilp-rest-service/src/main/java/io/github/js0ny/ilp_coursework/service/DroneInfoService.java @@ -1,6 +1,5 @@ package io.github.js0ny.ilp_coursework.service; - import io.github.js0ny.ilp_coursework.data.common.LngLat; import io.github.js0ny.ilp_coursework.data.external.Drone; import io.github.js0ny.ilp_coursework.data.external.RestrictedArea;