From 02d1197f6b7bd139b819e39290ba9f027ae0b2ad Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Sat, 18 Jan 2025 16:21:08 +0100 Subject: [PATCH] Add ci for api --- .github/workflows/coding-style.yml | 17 +++++++++++++++++ .github/workflows/docker.yml | 5 +++++ 2 files changed, 22 insertions(+) diff --git a/.github/workflows/coding-style.yml b/.github/workflows/coding-style.yml index af7e2b84..79f7581f 100644 --- a/.github/workflows/coding-style.yml +++ b/.github/workflows/coding-style.yml @@ -16,6 +16,23 @@ jobs: dotnet tool restore dotnet csharpier . --check + api: + name: "Lint api" + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./api + steps: + - uses: actions/checkout@v4 + + - name: Setup Biome + uses: biomejs/setup-biome@v2 + with: + version: latest + + - name: Run Biome + run: biome ci . + front: name: "Lint Front" runs-on: ubuntu-latest diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 1b2e1949..01394462 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -29,6 +29,11 @@ jobs: label: migrations image: zoriya/kyoo_migrations + - context: ./api + dockerfile: Dockerfile + label: api + image: zoriya/kyoo_api + - context: ./front dockerfile: Dockerfile label: front