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..2f35be4 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,32 +24,39 @@ 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') }} - - 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 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') }} - 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 + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + 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",