From 6cce07cdfdae9b0e203023da136a2fc94c860968 Mon Sep 17 00:00:00 2001 From: bmatthieu3 Date: Thu, 25 May 2023 18:57:18 +0200 Subject: [PATCH] update ci [ci skip] --- .github/workflows/npm-publish.yml | 10 ++++++---- package.json | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index c8bd1945..7175d7e8 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -8,7 +8,7 @@ on: types: [created] jobs: - build: + test: runs-on: ubuntu-latest steps: - name: "Checkout branch ${{ github.head_ref }}" @@ -20,12 +20,13 @@ jobs: - name: "Install the rust compiler" run: | curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y + source "$HOME/.cargo/env" - name: "Install wasm-pack" run: | curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh -s -- -y - name: "Install dependencies" run: | - npm ci + npm install - name: "Build Aladin Lite" run: | npm run build @@ -33,7 +34,7 @@ jobs: run: npm test publish-npm: - needs: build + needs: test runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -44,12 +45,13 @@ jobs: - name: "Install the rust compiler" run: | curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y + source "$HOME/.cargo/env" - name: "Install wasm-pack" run: | curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh -s -- -y - name: "Install dependencies" run: | - npm ci + npm install - name: "Build Aladin Lite" run: | npm run build diff --git a/package.json b/package.json index 4f524e33..75f4d9ba 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "dev": "npm run build && vite", "serve": "npm run dev", "preview": "vite preview", - "test": "cd src/core && cargo test --features webgl2" + "test": "cd src/core && cargo test --release --features webgl2" }, "devDependencies": { "npm": "^8.19.2",