From 8c2879063c6a4165be63ae91e8c558d097bdfa90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Sat, 25 Jul 2026 19:42:05 +0200 Subject: [PATCH 1/7] Migrate to Gitea Actions --- .gitea/release-drafter.yml | 14 +++++++++ .gitea/workflows/ci.yaml | 47 ++++++++++++++++++++++++++++ .gitea/workflows/release_drafter.yml | 13 ++++++++ .github/release-drafter.yml | 4 --- .github/workflows/ci.yml | 30 ------------------ 5 files changed, 74 insertions(+), 34 deletions(-) create mode 100644 .gitea/release-drafter.yml create mode 100644 .gitea/workflows/ci.yaml create mode 100644 .gitea/workflows/release_drafter.yml delete mode 100644 .github/release-drafter.yml delete mode 100644 .github/workflows/ci.yml diff --git a/.gitea/release-drafter.yml b/.gitea/release-drafter.yml new file mode 100644 index 0000000..3a70141 --- /dev/null +++ b/.gitea/release-drafter.yml @@ -0,0 +1,14 @@ +name-template: 'v$RESOLVED_VERSION' +tag-template: 'v$RESOLVED_VERSION' +version-resolver: + major: + labels: + - 'release/major' + minor: + labels: + - 'release/minor' + - 'feature' + patch: + labels: + - 'release/patch' + default: patch diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml new file mode 100644 index 0000000..37f8ec2 --- /dev/null +++ b/.gitea/workflows/ci.yaml @@ -0,0 +1,47 @@ +name: CI + +on: + push: + branches: + - main + - master + pull_request: {} + +concurrency: + group: ci-${{ github.head_ref || github.ref }} + cancel-in-progress: true + +jobs: + lint: + name: "Lint" + runs-on: ubuntu-latest + timeout-minutes: 10 + + steps: + - uses: actions/checkout@v4 + - name: Install Node + uses: actions/setup-node@v4 + with: + node-version: 16 + + - name: Install Dependencies + run: npm ci + - name: Lint + run: npm run lint + + test: + name: "Test" + runs-on: ubuntu-latest + timeout-minutes: 10 + + steps: + - uses: actions/checkout@v4 + - name: Install Node + uses: actions/setup-node@v4 + with: + node-version: 16 + + - name: Install Dependencies + run: npm ci + - name: Run Tests + run: npm test diff --git a/.gitea/workflows/release_drafter.yml b/.gitea/workflows/release_drafter.yml new file mode 100644 index 0000000..69a6098 --- /dev/null +++ b/.gitea/workflows/release_drafter.yml @@ -0,0 +1,13 @@ +name: Release Drafter +on: + pull_request: + types: [closed] +jobs: + release_drafter_job: + name: Update release notes draft + runs-on: ubuntu-latest + steps: + - name: Release Drafter + uses: https://github.com/raucao/gitea-release-drafter@dev + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml deleted file mode 100644 index a992d58..0000000 --- a/.github/release-drafter.yml +++ /dev/null @@ -1,4 +0,0 @@ -template: | - ## Changes - - $CHANGES diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index e9cf14a..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,30 +0,0 @@ -# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs - -name: CI - -on: - push: - branches: [ "master" ] - pull_request: - branches: [ "master" ] - -jobs: - build: - - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [16.x] - # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ - - steps: - - uses: actions/checkout@v3 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - cache: 'npm' - - run: npm install - - run: npm test -- 2.50.1 From 5cc17d57c131ee90396b00ccdb29acab9b495f89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Sat, 25 Jul 2026 19:48:31 +0200 Subject: [PATCH 2/7] Set up Chrome for CI tests --- .gitea/workflows/ci.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 37f8ec2..e146798 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -40,6 +40,10 @@ jobs: uses: actions/setup-node@v4 with: node-version: 16 + - name: Setup Chrome + uses: browser-actions/setup-chrome@v1 + with: + chrome-version: stable - name: Install Dependencies run: npm ci -- 2.50.1 From 10727cc55cac3da95239b662e05bd939f316f461 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Sat, 25 Jul 2026 19:48:41 +0200 Subject: [PATCH 3/7] Don't run linters in test command --- package.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package.json b/package.json index da05c1b..d8896ac 100644 --- a/package.json +++ b/package.json @@ -15,8 +15,7 @@ "lint:hbs": "ember-template-lint .", "lint:js": "eslint .", "start": "ember serve", - "test": "npm-run-all lint:* test:*", - "test:ember": "ember test", + "test": "ember test", "start:local": "WEB3_PROVIDER_URL=http://localhost:8545 WEB3_CHAIN_ID=1337 WEB3_NETWORK_NAME='Hardhat Devchain' ember serve", "build": "ember build --environment=production", "build-prod": "rm -rf release/* && ember build -prod --output-path release", -- 2.50.1 From b2c43746e6e91a99f5a49188d58ee0cdbfc4a41b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Sat, 25 Jul 2026 19:51:50 +0200 Subject: [PATCH 4/7] Cache npm packages in CI --- .gitea/workflows/ci.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index e146798..a2f36c4 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -23,6 +23,7 @@ jobs: uses: actions/setup-node@v4 with: node-version: 16 + cache: 'npm' - name: Install Dependencies run: npm ci @@ -40,6 +41,7 @@ jobs: uses: actions/setup-node@v4 with: node-version: 16 + cache: 'npm' - name: Setup Chrome uses: browser-actions/setup-chrome@v1 with: -- 2.50.1 From 43a417b8d706a19550d2e28843beec022d4a47cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Sat, 25 Jul 2026 19:55:05 +0200 Subject: [PATCH 5/7] Fix Chrome setup --- .gitea/workflows/ci.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index a2f36c4..b6791e0 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -33,6 +33,8 @@ jobs: test: name: "Test" runs-on: ubuntu-latest + container: + image: cypress/browsers:node16.18.0-chrome107-ff106-edge timeout-minutes: 10 steps: @@ -42,10 +44,6 @@ jobs: with: node-version: 16 cache: 'npm' - - name: Setup Chrome - uses: browser-actions/setup-chrome@v1 - with: - chrome-version: stable - name: Install Dependencies run: npm ci -- 2.50.1 From 26940878f0d31cf44f3de6b57c669493fe8bf256 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Sat, 25 Jul 2026 20:05:43 +0200 Subject: [PATCH 6/7] Remove node-install step in node container --- .gitea/workflows/ci.yaml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index b6791e0..6ac5e5f 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -39,11 +39,6 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Install Node - uses: actions/setup-node@v4 - with: - node-version: 16 - cache: 'npm' - name: Install Dependencies run: npm ci -- 2.50.1 From f29e3fcac74fa7f43c46cbc214328031e0ff5175 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Sat, 25 Jul 2026 20:09:50 +0200 Subject: [PATCH 7/7] Remove cache --- .gitea/workflows/ci.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 6ac5e5f..523f9e1 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -23,7 +23,6 @@ jobs: uses: actions/setup-node@v4 with: node-version: 16 - cache: 'npm' - name: Install Dependencies run: npm ci -- 2.50.1