diff --git a/.github/workflows/jsonrpc-client-npm-package.yml b/.github/workflows/jsonrpc-client-npm-package.yml index 57ec35095..8d371c6d6 100644 --- a/.github/workflows/jsonrpc-client-npm-package.yml +++ b/.github/workflows/jsonrpc-client-npm-package.yml @@ -38,13 +38,12 @@ jobs: node --version echo $DELTACHAT_JSONRPC_TAR_GZ - name: Install dependencies without running scripts - run: | - cd deltachat-jsonrpc/typescript - npm install --ignore-scripts + working-directory: deltachat-jsonrpc/typescript + run: npm install --ignore-scripts - name: Package shell: bash + working-directory: deltachat-jsonrpc/typescript run: | - cd deltachat-jsonrpc/typescript npm run build npm pack . ls -lah diff --git a/.github/workflows/jsonrpc.yml b/.github/workflows/jsonrpc.yml index 692150cd7..5f55ab529 100644 --- a/.github/workflows/jsonrpc.yml +++ b/.github/workflows/jsonrpc.yml @@ -22,24 +22,19 @@ jobs: - name: Add Rust cache uses: Swatinem/rust-cache@v2 - name: npm install - run: | - cd deltachat-jsonrpc/typescript - npm install + working-directory: deltachat-jsonrpc/typescript + run: npm install - name: Build TypeScript, run Rust tests, generate bindings - run: | - cd deltachat-jsonrpc/typescript - npm run build + working-directory: deltachat-jsonrpc/typescript + run: npm run build - name: Run integration tests - run: | - cd deltachat-jsonrpc/typescript - npm run test + working-directory: deltachat-jsonrpc/typescript + run: npm run test env: DCC_NEW_TMP_EMAIL: ${{ secrets.DCC_NEW_TMP_EMAIL }} - name: make sure websocket server version still builds - run: | - cd deltachat-jsonrpc - cargo build --bin deltachat-jsonrpc-server --features webserver + working-directory: deltachat-jsonrpc + run: cargo build --bin deltachat-jsonrpc-server --features webserver - name: Run linter - run: | - cd deltachat-jsonrpc/typescript - npm run prettier:check + working-directory: deltachat-jsonrpc/typescript + run: npm run prettier:check diff --git a/.github/workflows/node-docs.yml b/.github/workflows/node-docs.yml index 1cd1a60d4..1778d7d74 100644 --- a/.github/workflows/node-docs.yml +++ b/.github/workflows/node-docs.yml @@ -17,8 +17,8 @@ jobs: node-version: 16.x - name: npm install and generate documentation + working-directory: node run: | - cd node npm i --ignore-scripts npx typedoc mv docs js diff --git a/.github/workflows/node-package.yml b/.github/workflows/node-package.yml index 7575de84d..da2139e96 100644 --- a/.github/workflows/node-package.yml +++ b/.github/workflows/node-package.yml @@ -46,13 +46,12 @@ jobs: - name: Install dependencies & build if: steps.cache.outputs.cache-hit != 'true' - run: | - cd node - npm install --verbose + working-directory: node + run: npm install --verbose - name: Build Prebuild + working-directory: node run: | - cd node npm run prebuildify tar -zcvf "${{ matrix.os }}.tar.gz" -C prebuilds . diff --git a/.github/workflows/node-tests.yml b/.github/workflows/node-tests.yml index 62ab1d0fd..c12c6d780 100644 --- a/.github/workflows/node-tests.yml +++ b/.github/workflows/node-tests.yml @@ -52,25 +52,22 @@ jobs: - name: Install dependencies & build if: steps.cache.outputs.cache-hit != 'true' - run: | - cd node - npm install --verbose + working-directory: node + run: npm install --verbose - name: Test timeout-minutes: 10 if: runner.os != 'Windows' - run: | - cd node - npm run test + working-directory: node + run: npm run test env: DCC_NEW_TMP_EMAIL: ${{ secrets.DCC_NEW_TMP_EMAIL }} NODE_OPTIONS: "--force-node-api-uncaught-exceptions-policy=true" - name: Run tests on Windows, except lint timeout-minutes: 10 if: runner.os == 'Windows' - run: | - cd node - npm run test:mocha + working-directory: node + run: npm run test:mocha env: DCC_NEW_TMP_EMAIL: ${{ secrets.DCC_NEW_TMP_EMAIL }} NODE_OPTIONS: "--force-node-api-uncaught-exceptions-policy=true"