Skip to content

Commit

Permalink
ci: Remove Rust/Go toolchain for examples tests
Browse files Browse the repository at this point in the history
Examples tests do not use a local build of Turborepo,
so we do not need the toolchain for that
  • Loading branch information
mehulkar committed May 17, 2023
1 parent 5e6958b commit 262b1c6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 22 deletions.
10 changes: 10 additions & 0 deletions .github/actions/setup-node/action.yml
Expand Up @@ -13,6 +13,10 @@ inputs:
description: "Don't run the install step."
required: false
default: "true"
enable-pnpm-cache:
description: "Enable pnpm store cache"
required: false
default: "false"

runs:
using: "composite"
Expand All @@ -22,6 +26,12 @@ runs:
with:
version: 7.12.1

- name: Make sure pnpm always has a cache
if: ${{ inputs.enable-pnpm-cache == 'true' }}
shell: bash
run: |
mkdir -p `pnpm store path`
- name: Setup Node.js
uses: actions/setup-node@v3
with:
Expand Down
29 changes: 7 additions & 22 deletions .github/workflows/test.yml
Expand Up @@ -345,31 +345,16 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- uses: ./.github/actions/setup-turborepo-environment
with:
target: ${{ matrix.os.name }}
github-token: "${{ secrets.GITHUB_TOKEN }}"

- name: Setup Pnpm
uses: pnpm/action-setup@v2.2.4
- name: "Setup Node"
uses: ./.github/actions/setup-node
with:
version: 7.2.1
enable-corepack: "false"
package-install: "false"
enable-pnpm-cache: "true"

- name: Make sure pnpm always has a cache
- name: Install Turbo globally
shell: bash
run: |
mkdir -p `pnpm store path`
- name: Disable corepack
shell: bash
run: corepack disable

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16
cache: ${{ matrix.manager }}
cache-dependency-path: package.json
run: npm i -g turbo@canary

- name: Check examples
shell: bash
Expand Down

0 comments on commit 262b1c6

Please sign in to comment.