From e3f44761389b54b0d6599d44c41f617c550863ad Mon Sep 17 00:00:00 2001 From: neila <40727091+neila@users.noreply.github.com> Date: Sat, 12 Apr 2025 00:37:43 +0900 Subject: [PATCH 1/3] update ci --- .github/CODEOWNERS | 1 - .github/workflows/ci.yml | 22 +++++++++++++--------- 2 files changed, 13 insertions(+), 10 deletions(-) delete mode 100644 .github/CODEOWNERS diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS deleted file mode 100644 index bff1fbf..0000000 --- a/.github/CODEOWNERS +++ /dev/null @@ -1 +0,0 @@ -* @unchain-tech/sb-w3dev \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b380189..eb6c7f8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,17 +1,17 @@ name: CI -on: [push] +on: [push, workflow_dispatch] jobs: setup: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version: 18.x + node-version: 22.x cache: 'npm' - - uses: actions/cache@v3 + - uses: actions/cache@v4 id: cache-npm with: path: '**/node_modules' @@ -24,8 +24,8 @@ jobs: runs-on: ubuntu-latest needs: setup steps: - - uses: actions/checkout@v3 - - uses: actions/cache@v3 + - uses: actions/checkout@v4 + - uses: actions/cache@v4 with: path: '**/node_modules' key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }} @@ -42,8 +42,8 @@ jobs: runs-on: ubuntu-latest needs: [setup, check] steps: - - uses: actions/checkout@v3 - - uses: actions/cache@v3 + - uses: actions/checkout@v4 + - uses: actions/cache@v4 with: path: '**/node_modules' key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }} @@ -53,3 +53,7 @@ jobs: run: DFX_VERSION=0.14.1 sh -ci "$(curl -sSL https://internetcomputer.org/install.sh)" - name: unit test run: npm run test + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true \ No newline at end of file From b245977e963f03f2b22aac935c8ebc76bac9874b Mon Sep 17 00:00:00 2001 From: neila <40727091+neila@users.noreply.github.com> Date: Sat, 12 Apr 2025 00:41:20 +0900 Subject: [PATCH 2/3] fmt --- .github/workflows/ci.yml | 14 +++++++------- package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eb6c7f8..81f2d9b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,14 +29,14 @@ jobs: with: path: '**/node_modules' key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }} - - name: clippy - run: npm run clippy - - name: rustfmt - run: npm run fmt - name: lint - run: npm run lint + run: | + npm run lint + npm run clippy - name: format - run: npm run prettier:check + run: | + npm run prettier:check + npm run fmt contract-test: runs-on: ubuntu-latest @@ -56,4 +56,4 @@ jobs: concurrency: group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true \ No newline at end of file + cancel-in-progress: true diff --git a/package.json b/package.json index f3fd9da..9d549e8 100644 --- a/package.json +++ b/package.json @@ -72,7 +72,7 @@ "webpack-dev-server": "^4.8.1" }, "engines": { - "node": "^12 || ^14 || ^16 || ^18" + "node": "^18 || ^20 || ^22" }, "browserslist": [ "last 2 chrome version", From db3cfa7147afc95318e8b2a8c2adac0f6fc4e96f Mon Sep 17 00:00:00 2001 From: neila <40727091+neila@users.noreply.github.com> Date: Sat, 12 Apr 2025 00:43:54 +0900 Subject: [PATCH 3/3] ic sdk ci --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 81f2d9b..2f35be4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,7 +50,10 @@ jobs: - name: Install WebAssembly target run: rustup target add wasm32-unknown-unknown - name: Install IC SDK - run: DFX_VERSION=0.14.1 sh -ci "$(curl -sSL https://internetcomputer.org/install.sh)" + uses: dfinity/setup-dfx@main + # DFX_VERSION=0.14.1 sh -ci "$(curl -sSL https://internetcomputer.org/install.sh)" + - name: Confirm successful installation + run: dfx --version - name: unit test run: npm run test