From cd274f22e5a4db713b684defae88ee38a9d18c34 Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Mon, 1 Apr 2024 01:38:08 +0200 Subject: [PATCH] [ci] Update CI --- .forgejo/workflows/test-build.yaml | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/.forgejo/workflows/test-build.yaml b/.forgejo/workflows/test-build.yaml index 925548cd..da4c6888 100644 --- a/.forgejo/workflows/test-build.yaml +++ b/.forgejo/workflows/test-build.yaml @@ -3,32 +3,19 @@ on: branches-ignore: - 'dev' jobs: - test-frontend: - runs-on: docker - container: - image: iceshrimp.dev/iceshrimp/ci-env:latest - steps: - - name: Clone repository - run: git clone https://iceshrimp.dev/iceshrimp/Iceshrimp.NET.git --branch=${{ github.ref_name }} --depth=1 /iceshrimp - - name: Build the frontend - run: | - cd /iceshrimp/Iceshrimp.Frontend - yarn --immutable - yarn build - test-backend: + test-build: runs-on: docker container: image: mcr.microsoft.com/dotnet/sdk:8.0-alpine steps: - name: Clone repository run: git clone https://iceshrimp.dev/iceshrimp/Iceshrimp.NET.git --branch=${{ github.ref_name }} --depth=1 /iceshrimp - - name: Build the backend + - name: Build backend & frontend run: | cd /iceshrimp/Iceshrimp.Backend dotnet restore - mkdir -p ./wwwroot/.vite/ && touch ./wwwroot/.vite/manifest.json dotnet build - - name: Test the backend + - name: Run tests run: | cd /iceshrimp dotnet test