diff --git a/.github/workflows/build-smoke-tests.yml b/.github/workflows/build-smoke-tests.yml index 0a39805ff..a3c7557ac 100644 --- a/.github/workflows/build-smoke-tests.yml +++ b/.github/workflows/build-smoke-tests.yml @@ -57,10 +57,11 @@ jobs: ref: ${{ github.event.inputs.ref }} path: example - name: setup node - uses: actions/setup-node@v1 + uses: actions/setup-node@v2 with: node-version: 14 - - name: install rust stable + cache: yarn + cache-dependency-path: tooling/*/yarn.lock uses: actions-rs/toolchain@v1 with: toolchain: stable diff --git a/.github/workflows/covector-version-or-publish.yml b/.github/workflows/covector-version-or-publish.yml index b0d672a49..c8e18d1a5 100644 --- a/.github/workflows/covector-version-or-publish.yml +++ b/.github/workflows/covector-version-or-publish.yml @@ -22,10 +22,12 @@ jobs: - uses: actions/checkout@v2 with: fetch-depth: 0 - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v2 with: node-version: 14 registry-url: "https://registry.npmjs.org" + cache: yarn + cache-dependency-path: tooling/*/yarn.lock - name: cargo login run: cargo login ${{ secrets.crate_token }} - name: git config @@ -125,7 +127,7 @@ jobs: - uses: iamsauravsharma/create-dotenv@v1.1.0 with: - directory: './tauri-search-bot' + directory: "./tauri-search-bot" env: ENV_KEY_DISCORD_BOT_SECRET: ${{ secrets.DISCORD_BOT_SECRET }} ENV_KEY_PREFIX: \! diff --git a/.github/workflows/js-lint.yml b/.github/workflows/js-lint.yml index 5528c4120..74eea75bf 100644 --- a/.github/workflows/js-lint.yml +++ b/.github/workflows/js-lint.yml @@ -7,19 +7,21 @@ name: eslint check on: pull_request: paths: - - '.github/workflows/js-lint.yml' - - 'tooling/cli.js/**' - - 'tooling/api/**' - - 'tooling/create-tauri-app/**' + - ".github/workflows/js-lint.yml" + - "tooling/cli.js/**" + - "tooling/api/**" + - "tooling/create-tauri-app/**" jobs: eslint-check: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v2 with: - node-version: '12' + node-version: "12" + cache: yarn + cache-dependency-path: tooling/*/yarn.lock - name: install cli.js deps via yarn working-directory: ./tooling/cli.js/ run: yarn diff --git a/.github/workflows/test-core.yml b/.github/workflows/test-core.yml index 404419cbd..3df665c4d 100644 --- a/.github/workflows/test-core.yml +++ b/.github/workflows/test-core.yml @@ -158,11 +158,17 @@ jobs: steps: - uses: actions/checkout@v2 - - name: install stable + - name: install Rust stable uses: actions-rs/toolchain@v1 with: toolchain: stable override: true + - name: setup node + uses: actions/setup-node@v2 + with: + node-version: 14 + cache: yarn + cache-dependency-path: tooling/cli.js/yarn.lock - name: install webkit2gtk (ubuntu only) if: matrix.platform == 'ubuntu-latest' run: | diff --git a/docs/usage/guides/bundler/sign-osx.md b/docs/usage/guides/bundler/sign-osx.md index 45a0e66b7..9ff8727b0 100644 --- a/docs/usage/guides/bundler/sign-osx.md +++ b/docs/usage/guides/bundler/sign-osx.md @@ -72,7 +72,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: setup node - uses: actions/setup-node@v1 + uses: actions/setup-node@v2 with: node-version: 12 - name: install Rust stable diff --git a/docs/usage/guides/webdriver/ci.md b/docs/usage/guides/webdriver/ci.md index 5aba5c94b..214e9c91c 100644 --- a/docs/usage/guides/webdriver/ci.md +++ b/docs/usage/guides/webdriver/ci.md @@ -69,7 +69,7 @@ jobs: # install the latest stable node version at the time of writing - name: Node v16 - uses: actions/setup-node@v1 + uses: actions/setup-node@v2 with: node-version: 16.x diff --git a/tooling/cli.rs/templates/plugin/backend/.github/workflows/covector-version-or-publish.yml b/tooling/cli.rs/templates/plugin/backend/.github/workflows/covector-version-or-publish.yml index 792f170ba..a055cf1ca 100755 --- a/tooling/cli.rs/templates/plugin/backend/.github/workflows/covector-version-or-publish.yml +++ b/tooling/cli.rs/templates/plugin/backend/.github/workflows/covector-version-or-publish.yml @@ -13,7 +13,7 @@ jobs: - uses: actions/checkout@v2 with: fetch-depth: 0 - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v2 with: node-version: 12 registry-url: 'https://registry.npmjs.org' diff --git a/tooling/cli.rs/templates/plugin/with-api/.github/workflows/covector-version-or-publish.yml b/tooling/cli.rs/templates/plugin/with-api/.github/workflows/covector-version-or-publish.yml index 792f170ba..a055cf1ca 100644 --- a/tooling/cli.rs/templates/plugin/with-api/.github/workflows/covector-version-or-publish.yml +++ b/tooling/cli.rs/templates/plugin/with-api/.github/workflows/covector-version-or-publish.yml @@ -13,7 +13,7 @@ jobs: - uses: actions/checkout@v2 with: fetch-depth: 0 - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v2 with: node-version: 12 registry-url: 'https://registry.npmjs.org'