From 6eacf8c683814e75eb8c5e3376aba90f5a81e562 Mon Sep 17 00:00:00 2001 From: Kan-Ru Chen Date: Tue, 30 Jan 2024 21:54:57 +0900 Subject: [PATCH 1/3] ci: remove rust setup since rustup is included in the runner image --- .github/workflows/main.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9591fe9..01f56ad 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,11 +7,9 @@ jobs: name: Vet Dependencies runs-on: ubuntu-latest env: - CARGO_VET_VERSION: 0.3.0 + CARGO_VET_VERSION: 0.9.0 steps: - uses: actions/checkout@master - - name: Install Rust - run: rustup update stable && rustup default stable - uses: actions/cache@v2 with: path: ${{ runner.tool_cache }}/cargo-vet @@ -27,15 +25,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Install rust-toolchain - uses: dtolnay/rust-toolchain@master - with: - toolchain: nightly-2022-09-20 - targets: wasm32-unknown-unknown - components: rust-src - uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 20 - uses: microsoft/playwright-github-action@v1 - name: Install dependencies and run tests run: npm install && npm run build && npm test \ No newline at end of file From 4ff67e4a0670dbb1f347797ea4d037ea10df2a4b Mon Sep 17 00:00:00 2001 From: Kan-Ru Chen Date: Tue, 30 Jan 2024 21:59:29 +0900 Subject: [PATCH 2/3] ci: setup toolchain before npm build --- .github/workflows/main.yml | 2 +- package-lock.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 01f56ad..37410a6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -30,4 +30,4 @@ jobs: node-version: 20 - uses: microsoft/playwright-github-action@v1 - name: Install dependencies and run tests - run: npm install && npm run build && npm test \ No newline at end of file + run: cargo check && npm install && npm run build && npm test \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 41fd322..c608e01 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@kanru/rage-wasm", - "version": "0.3.0", + "version": "0.3.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@kanru/rage-wasm", - "version": "0.3.0", + "version": "0.3.1", "license": "MIT OR Apache-2.0", "devDependencies": { "@esm-bundle/chai": "^4.3.4-fix.0", From c6072122f0e06698de0273da0be0000b7bb8ce1e Mon Sep 17 00:00:00 2001 From: Kan-Ru Chen Date: Tue, 30 Jan 2024 22:07:52 +0900 Subject: [PATCH 3/3] ci: install browsers --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 37410a6..1122e4d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -30,4 +30,4 @@ jobs: node-version: 20 - uses: microsoft/playwright-github-action@v1 - name: Install dependencies and run tests - run: cargo check && npm install && npm run build && npm test \ No newline at end of file + run: cargo check && npm install && npm run build && npx playwright install && npm test \ No newline at end of file