From 654f7bfec66da1abf6940f6daafa8fe44d699fdc Mon Sep 17 00:00:00 2001 From: Tobias Klemp Date: Sat, 3 Jan 2026 18:43:04 +0100 Subject: [PATCH 1/7] feat: cache node_modules --- .gitea/workflows/ci.yml | 186 +++++++++++++++++++--------------------- 1 file changed, 87 insertions(+), 99 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index b8f565f..36d6d7b 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -7,7 +7,7 @@ on: branches: [main, develop] jobs: - build-and-test: + install-dependencies: runs-on: ubuntu-latest steps: - name: Checkout repo @@ -26,112 +26,100 @@ jobs: - name: Install dependencies run: bun ci + - name: Upload node_modules artifact + uses: actions/upload-artifact@v4 + with: + name: node_modules + path: node_modules/ + retention-days: 1 + + build: + runs-on: ubuntu-latest + needs: install-dependencies + steps: + - name: Checkout repo + uses: actions/checkout@v4 + + - name: Install bun + uses: oven-sh/setup-bun@v2 + with: + bun-version: 1.3.4 + + - name: Download node_modules artifact + uses: actions/download-artifact@v4 + with: + name: node_modules + path: node_modules + - name: Build app run: bun --bun run build + - name: Upload build artifacts + uses: actions/upload-artifact@v4 + with: + name: build-output + path: build/ + retention-days: 7 + + type-check: + runs-on: ubuntu-latest + needs: install-dependencies + steps: + - name: Checkout repo + uses: actions/checkout@v4 + + - name: Install bun + uses: oven-sh/setup-bun@v2 + with: + bun-version: 1.3.4 + + - name: Download node_modules artifact + uses: actions/download-artifact@v4 + with: + name: node_modules + path: node_modules + - name: Run type checking run: bun --bun run check + lint: + runs-on: ubuntu-latest + needs: install-dependencies + steps: + - name: Checkout repo + uses: actions/checkout@v4 + + - name: Install bun + uses: oven-sh/setup-bun@v2 + with: + bun-version: 1.3.4 + + - name: Download node_modules artifact + uses: actions/download-artifact@v4 + with: + name: node_modules + path: node_modules + - name: Run linting run: bun --bun run lint:check + format-check: + runs-on: ubuntu-latest + needs: install-dependencies + steps: + - name: Checkout repo + uses: actions/checkout@v4 + + - name: Install bun + uses: oven-sh/setup-bun@v2 + with: + bun-version: 1.3.4 + + - name: Download node_modules artifact + uses: actions/download-artifact@v4 + with: + name: node_modules + path: node_modules + - name: Check formatting run: bun --bun run format:check - - # build-docker-image: - # runs-on: ubuntu-latest - # steps: - # - name: Set up Docker Build - # uses: docker/setup-buildx-action@v3 - - # - name: Log in to registry - # uses: docker/login-action@v3 - # with: - # registry: ${{ vars.INSTANCE_URL }} - # username: ${{ github.actor }} - # password: ${{ secrets.REGISTRY_ACCESS_TOKEN }} - - # - name: Build and push image - # uses: docker/build-push-action@v6 - # with: - # push: true - # tags: ${{ vars.INSTANCE_URL }}/tech-reborn/phoenix:${{ github.sha }} - - # type-check: - # runs-on: ubuntu-latest - # container: - # image: oven/bun:alpine - # needs: install-dependencies - # steps: - # - name: Checkout code - # uses: actions/checkout@v4 - - # - name: Download node_modules artifact - # uses: actions/download-artifact@v3 - # with: - # name: node_modules - # path: node_modules - - # - name: Run type checking - # run: bun run check - - # lint: - # runs-on: ubuntu-latest - # container: - # image: oven/bun:alpine - # needs: install-dependencies - # steps: - # - name: Checkout code - # uses: actions/checkout@v4 - - # - name: Download node_modules artifact - # uses: actions/download-artifact@v3 - # with: - # name: node_modules - # path: node_modules - - # - name: Run linting - # run: bun run lint:check - - # format-check: - # runs-on: ubuntu-latest - # container: - # image: oven/bun:alpine - # needs: install-dependencies - # steps: - # - name: Checkout code - # uses: actions/checkout@v4 - - # - name: Download node_modules artifact - # uses: actions/download-artifact@v3 - # with: - # name: node_modules - # path: node_modules - - # - name: Check formatting - # run: bun run format:check - - # build: - # runs-on: ubuntu-latest - # container: - # image: oven/bun:alpine - # needs: install-dependencies - # steps: - # - name: Checkout code - # uses: actions/checkout@v4 - - # - name: Download node_modules artifact - # uses: actions/download-artifact@v3 - # with: - # name: node_modules - # path: node_modules - - # - name: Build application - # run: bun run build - - # - name: Upload build artifacts - # uses: actions/upload-artifact@v4 - # with: - # name: build-output - # path: build/ - # retention-days: 7 -- 2.49.1 From 77799dded246921eef8afd77f4b24003331b9e6b Mon Sep 17 00:00:00 2001 From: Tobias Klemp Date: Sat, 3 Jan 2026 18:51:13 +0100 Subject: [PATCH 2/7] newer artifact upload version --- .gitea/workflows/ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 36d6d7b..1490b72 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -46,7 +46,7 @@ jobs: bun-version: 1.3.4 - name: Download node_modules artifact - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v6 with: name: node_modules path: node_modules @@ -55,7 +55,7 @@ jobs: run: bun --bun run build - name: Upload build artifacts - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: name: build-output path: build/ @@ -74,7 +74,7 @@ jobs: bun-version: 1.3.4 - name: Download node_modules artifact - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v6 with: name: node_modules path: node_modules @@ -87,7 +87,7 @@ jobs: needs: install-dependencies steps: - name: Checkout repo - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Install bun uses: oven-sh/setup-bun@v2 @@ -95,7 +95,7 @@ jobs: bun-version: 1.3.4 - name: Download node_modules artifact - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v6 with: name: node_modules path: node_modules @@ -116,7 +116,7 @@ jobs: bun-version: 1.3.4 - name: Download node_modules artifact - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v6 with: name: node_modules path: node_modules -- 2.49.1 From b73a52beb16b1a1303a54d27f463139e1e453874 Mon Sep 17 00:00:00 2001 From: Tobias Klemp Date: Sat, 3 Jan 2026 18:56:02 +0100 Subject: [PATCH 3/7] upsi daisy --- .gitea/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 1490b72..7a3c2e5 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -27,7 +27,7 @@ jobs: run: bun ci - name: Upload node_modules artifact - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: name: node_modules path: node_modules/ -- 2.49.1 From e215ba54e62dd1e20dff632b510eba0582b39eb4 Mon Sep 17 00:00:00 2001 From: Tobias Klemp Date: Sat, 3 Jan 2026 19:04:58 +0100 Subject: [PATCH 4/7] use gitea upload --- .gitea/workflows/ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 7a3c2e5..67a2222 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -46,7 +46,7 @@ jobs: bun-version: 1.3.4 - name: Download node_modules artifact - uses: actions/download-artifact@v6 + uses: actions/download-artifact@v4 with: name: node_modules path: node_modules @@ -55,7 +55,7 @@ jobs: run: bun --bun run build - name: Upload build artifacts - uses: actions/upload-artifact@v6 + uses: https://github.com/christopherHX/gitea-upload-artifact@v4 with: name: build-output path: build/ @@ -74,7 +74,7 @@ jobs: bun-version: 1.3.4 - name: Download node_modules artifact - uses: actions/download-artifact@v6 + uses: actions/download-artifact@v4 with: name: node_modules path: node_modules @@ -95,7 +95,7 @@ jobs: bun-version: 1.3.4 - name: Download node_modules artifact - uses: actions/download-artifact@v6 + uses: actions/download-artifact@v4 with: name: node_modules path: node_modules @@ -116,7 +116,7 @@ jobs: bun-version: 1.3.4 - name: Download node_modules artifact - uses: actions/download-artifact@v6 + uses: actions/download-artifact@v4 with: name: node_modules path: node_modules -- 2.49.1 From 73ccad3144e397e07fafe668e8af55c52ac5b3c1 Mon Sep 17 00:00:00 2001 From: Tobias Klemp Date: Sat, 3 Jan 2026 19:08:32 +0100 Subject: [PATCH 5/7] dumm --- .gitea/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 67a2222..167755e 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -27,7 +27,7 @@ jobs: run: bun ci - name: Upload node_modules artifact - uses: actions/upload-artifact@v6 + uses: https://gitea.com/actions/gitea-upload-artifact@v4 with: name: node_modules path: node_modules/ -- 2.49.1 From 783b3786735eecc40c5246f0a68747bdbc09e9d2 Mon Sep 17 00:00:00 2001 From: Tobias Klemp Date: Sat, 3 Jan 2026 19:12:29 +0100 Subject: [PATCH 6/7] need node obviously --- .gitea/workflows/ci.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 167755e..e3af754 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -45,6 +45,11 @@ jobs: with: bun-version: 1.3.4 + - name: Install node + uses: actions/setup-node@v6 + with: + node-version: '22.x' + - name: Download node_modules artifact uses: actions/download-artifact@v4 with: @@ -73,6 +78,11 @@ jobs: with: bun-version: 1.3.4 + - name: Install node + uses: actions/setup-node@v6 + with: + node-version: '22.x' + - name: Download node_modules artifact uses: actions/download-artifact@v4 with: @@ -94,6 +104,11 @@ jobs: with: bun-version: 1.3.4 + - name: Install node + uses: actions/setup-node@v6 + with: + node-version: '22.x' + - name: Download node_modules artifact uses: actions/download-artifact@v4 with: @@ -115,6 +130,11 @@ jobs: with: bun-version: 1.3.4 + - name: Install node + uses: actions/setup-node@v6 + with: + node-version: '22.x' + - name: Download node_modules artifact uses: actions/download-artifact@v4 with: -- 2.49.1 From 2abaf6e6bf9149c796abe9e6f41af7ba05e0f918 Mon Sep 17 00:00:00 2001 From: Tobias Klemp Date: Sat, 3 Jan 2026 19:15:41 +0100 Subject: [PATCH 7/7] do install everywhere --- .gitea/workflows/ci.yml | 89 +++++++++-------------------------------- 1 file changed, 20 insertions(+), 69 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index e3af754..aa8a660 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -7,7 +7,7 @@ on: branches: [main, develop] jobs: - install-dependencies: + build: runs-on: ubuntu-latest steps: - name: Checkout repo @@ -26,120 +26,71 @@ jobs: - name: Install dependencies run: bun ci - - name: Upload node_modules artifact - uses: https://gitea.com/actions/gitea-upload-artifact@v4 - with: - name: node_modules - path: node_modules/ - retention-days: 1 - - build: - runs-on: ubuntu-latest - needs: install-dependencies - steps: - - name: Checkout repo - uses: actions/checkout@v4 - - - name: Install bun - uses: oven-sh/setup-bun@v2 - with: - bun-version: 1.3.4 - - - name: Install node - uses: actions/setup-node@v6 - with: - node-version: '22.x' - - - name: Download node_modules artifact - uses: actions/download-artifact@v4 - with: - name: node_modules - path: node_modules - - name: Build app run: bun --bun run build - - name: Upload build artifacts - uses: https://github.com/christopherHX/gitea-upload-artifact@v4 - with: - name: build-output - path: build/ - retention-days: 7 - type-check: runs-on: ubuntu-latest - needs: install-dependencies steps: - name: Checkout repo uses: actions/checkout@v4 - - name: Install bun - uses: oven-sh/setup-bun@v2 - with: - bun-version: 1.3.4 - - name: Install node uses: actions/setup-node@v6 with: node-version: '22.x' - - name: Download node_modules artifact - uses: actions/download-artifact@v4 + - name: Install bun + uses: oven-sh/setup-bun@v2 with: - name: node_modules - path: node_modules + bun-version: 1.3.4 + + - name: Install dependencies + run: bun ci - name: Run type checking run: bun --bun run check lint: runs-on: ubuntu-latest - needs: install-dependencies steps: - name: Checkout repo - uses: actions/checkout@v6 - - - name: Install bun - uses: oven-sh/setup-bun@v2 - with: - bun-version: 1.3.4 + uses: actions/checkout@v4 - name: Install node uses: actions/setup-node@v6 with: node-version: '22.x' - - name: Download node_modules artifact - uses: actions/download-artifact@v4 + - name: Install bun + uses: oven-sh/setup-bun@v2 with: - name: node_modules - path: node_modules + bun-version: 1.3.4 + + - name: Install dependencies + run: bun ci - name: Run linting run: bun --bun run lint:check format-check: runs-on: ubuntu-latest - needs: install-dependencies steps: - name: Checkout repo uses: actions/checkout@v4 - - name: Install bun - uses: oven-sh/setup-bun@v2 - with: - bun-version: 1.3.4 - - name: Install node uses: actions/setup-node@v6 with: node-version: '22.x' - - name: Download node_modules artifact - uses: actions/download-artifact@v4 + - name: Install bun + uses: oven-sh/setup-bun@v2 with: - name: node_modules - path: node_modules + bun-version: 1.3.4 + + - name: Install dependencies + run: bun ci - name: Check formatting run: bun --bun run format:check -- 2.49.1