From b9382b9f57c810226d4520c3552f476299ae91fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Tue, 24 Feb 2026 16:47:25 +0400 Subject: [PATCH 1/6] Set up Gitea Actions/CI --- .github/workflows/ci.yml => .gitea/workflows/ci.yaml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) rename .github/workflows/ci.yml => .gitea/workflows/ci.yaml (85%) diff --git a/.github/workflows/ci.yml b/.gitea/workflows/ci.yaml similarity index 85% rename from .github/workflows/ci.yml rename to .gitea/workflows/ci.yaml index 59b41a9..1db1a39 100644 --- a/.github/workflows/ci.yml +++ b/.gitea/workflows/ci.yaml @@ -3,7 +3,6 @@ name: CI on: push: branches: - - main - master pull_request: {} @@ -18,12 +17,12 @@ jobs: timeout-minutes: 10 steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v4 - uses: pnpm/action-setup@v4 with: version: 10 - name: Install Node - uses: actions/setup-node@v6 + uses: actions/setup-node@v4 with: node-version: 22 cache: pnpm @@ -38,12 +37,12 @@ jobs: timeout-minutes: 10 steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v4 - uses: pnpm/action-setup@v4 with: version: 10 - name: Install Node - uses: actions/setup-node@v6 + uses: actions/setup-node@v4 with: node-version: 22 cache: pnpm -- 2.50.1 From 9a373e8af1bb73f6eb7d98b775caf8d1de43c2e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Tue, 24 Feb 2026 17:42:48 +0400 Subject: [PATCH 2/6] Formatting --- app/components/icon.gjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/icon.gjs b/app/components/icon.gjs index f00b68d..b00dc5f 100644 --- a/app/components/icon.gjs +++ b/app/components/icon.gjs @@ -66,7 +66,7 @@ export default class IconComponent extends Component { get style() { return htmlSafe( - `width:${this.size}px;height:${this.size}px;color:${this.color}`, + `width:${this.size}px;height:${this.size}px;color:${this.color}` ); } -- 2.50.1 From 38b525a1b633e6aa38803b95f24dd797fe89dc22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Tue, 24 Feb 2026 17:56:49 +0400 Subject: [PATCH 3/6] Fix pnpm cache (hopefully) --- .gitea/workflows/ci.yaml | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 1db1a39..fdb6315 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -3,6 +3,7 @@ name: CI on: push: branches: + - main - master pull_request: {} @@ -25,7 +26,20 @@ jobs: uses: actions/setup-node@v4 with: node-version: 22 - cache: pnpm + + - name: Get pnpm store directory + shell: bash + run: | + echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV + + - uses: actions/cache@v4 + name: Setup pnpm cache + with: + path: ${{ env.STORE_PATH }} + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-pnpm-store- + - name: Install Dependencies run: pnpm install --frozen-lockfile - name: Lint @@ -45,7 +59,20 @@ jobs: uses: actions/setup-node@v4 with: node-version: 22 - cache: pnpm + + - name: Get pnpm store directory + shell: bash + run: | + echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV + + - uses: actions/cache@v4 + name: Setup pnpm cache + with: + path: ${{ env.STORE_PATH }} + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-pnpm-store- + - name: Install Dependencies run: pnpm install --frozen-lockfile - name: Run Tests -- 2.50.1 From 029911df37687b59e34a319dd73627f11b572106 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Tue, 24 Feb 2026 18:12:00 +0400 Subject: [PATCH 4/6] Use image with Node.js and Chrome pre-installed --- .gitea/workflows/ci.yaml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index fdb6315..ad34b52 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -48,6 +48,8 @@ jobs: test: name: "Test" runs-on: ubuntu-latest + container: + image: cypress/browsers:node-22.14.0-chrome-133.0.6943.53-1-ff-135.0.1-edge-133.0.3065.59-1 timeout-minutes: 10 steps: @@ -55,11 +57,7 @@ jobs: - uses: pnpm/action-setup@v4 with: version: 10 - - name: Install Node - uses: actions/setup-node@v4 - with: - node-version: 22 - + - name: Get pnpm store directory shell: bash run: | -- 2.50.1 From 5cb285343b2b0841690a55011219d0328c87574b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Tue, 24 Feb 2026 18:16:50 +0400 Subject: [PATCH 5/6] Remove pnpm caching --- .gitea/workflows/ci.yaml | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index ad34b52..8b36bcf 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -27,19 +27,6 @@ jobs: with: node-version: 22 - - name: Get pnpm store directory - shell: bash - run: | - echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV - - - uses: actions/cache@v4 - name: Setup pnpm cache - with: - path: ${{ env.STORE_PATH }} - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm-store- - - name: Install Dependencies run: pnpm install --frozen-lockfile - name: Lint @@ -57,19 +44,6 @@ jobs: - uses: pnpm/action-setup@v4 with: version: 10 - - - name: Get pnpm store directory - shell: bash - run: | - echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV - - - uses: actions/cache@v4 - name: Setup pnpm cache - with: - path: ${{ env.STORE_PATH }} - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm-store- - name: Install Dependencies run: pnpm install --frozen-lockfile -- 2.50.1 From 121ea48a5315c01f395746a8ce8253a0d13bb22f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Tue, 24 Feb 2026 18:20:34 +0400 Subject: [PATCH 6/6] Fix cypress tag --- .gitea/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 8b36bcf..6b46423 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -36,7 +36,7 @@ jobs: name: "Test" runs-on: ubuntu-latest container: - image: cypress/browsers:node-22.14.0-chrome-133.0.6943.53-1-ff-135.0.1-edge-133.0.3065.59-1 + image: cypress/browsers:node-22.19.0-chrome-139.0.7258.154-1-ff-142.0.1-edge-139.0.3405.125-1 timeout-minutes: 10 steps: -- 2.50.1