Skip to content

Commit

Permalink
CI cacheitem consistency check.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Hammond authored and Nathan Hammond committed May 16, 2023
1 parent b138add commit ffb93b6
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/turborepo-compare-cache-item.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Turborepo Compare Cache Item

on:
workflow_dispatch:
inputs:
version:
description: Turborepo release to test.
type: string
default: "canary"

jobs:
generate_cache_artifact:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}

steps:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16

- name: create-turbo
run: |
npm install -g turbo@${{ inputs.version }}
npx create-turbo@${{ inputs.version }} my-turborepo npm
cd my-turborepo
turbo run build --summarize --skip-infer -vvv
- name: Grab Turborepo artifacts
uses: actions/upload-artifact@v3
with:
name: cache-item-${{ matrix.os }}-${{ inputs.version }}
path: |
my-turborepo/node_modules/.cache/turbo
my-turborepo/.turbo/runs
retention-days: 1

0 comments on commit ffb93b6

Please sign in to comment.