diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 240e13c2..955bc3c8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -65,7 +65,9 @@ jobs: node-version: 18.x cache: 'yarn' - name: Install dependencies - run: yarn --frozen-lockfile + run: | + yarn --frozen-lockfile + yarn install-addons - name: Lint code run: yarn lint - name: Lint API @@ -98,7 +100,9 @@ jobs: node-version: ${{ matrix.node-version }}.x cache: 'yarn' - name: Install dependencies - run: yarn --frozen-lockfile + run: | + yarn --frozen-lockfile + yarn install-addons - name: Unit tests run: yarn test-unit --forbid-only @@ -107,7 +111,7 @@ jobs: timeout-minutes: 20 strategy: matrix: - node-version: [18] + node-version: [18] # just one as integration tests are about testing in browser runs-on: [ubuntu, windows] # macos is flaky browser: [chromium, firefox] runs-on: ${{ matrix.runs-on }}-latest @@ -130,7 +134,9 @@ jobs: node-version: ${{ matrix.node-version }}.x cache: 'yarn' - name: Install dependencies - run: yarn --frozen-lockfile + run: | + yarn --frozen-lockfile + yarn install-addons - name: Install playwright run: npx playwright install - name: Integration tests (${{ matrix.browser }}) diff --git a/package.json b/package.json index 4fb383fd..be507b6e 100644 --- a/package.json +++ b/package.json @@ -41,8 +41,9 @@ "test-unit-coverage": "node ./bin/test.js --coverage", "test-unit-dev": "cross-env NODE_PATH='./out' mocha", "build": "tsc -b ./tsconfig.all.json", + "install-addons": "node ./bin/install-addons.js", + "presetup": "npm run install-addons", "setup": "npm run build", - "postinstall": "node ./bin/install-addons.js", "postsetup": "npm run inwasm", "prepublishOnly": "npm run package", "watch": "tsc -b -w ./tsconfig.all.json --preserveWatchOutput",