Skip to content

Commit

Permalink
HTTP cache
Browse files Browse the repository at this point in the history
  • Loading branch information
--global authored and --global committed May 22, 2023
1 parent 8eff519 commit 8946279
Show file tree
Hide file tree
Showing 266 changed files with 3,138 additions and 7,633 deletions.
4 changes: 2 additions & 2 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ linker = "rust-lld"
xtask = "run --package xtask --"
tr-build = "build -p turbo"
tr-run = "run -p turbo"
tr-test = "test -p turborepo-* -p turbopath -p vercel-api-mock -p turborepo-cache --features rustls-tls"
tr-check = "check -p turbo -p vercel-api-mock -p turborepo-ffi"
tr-test = "test -p turborepo-* -p turbopath -p vercel-api-mock --features rustls-tls"
tr-check = "check -p turbo -p vercel-api-mock"
# Builds all test code to check for compiler errors before running
tp-pre-test = "nextest run --no-run --workspace --release --exclude turbo --exclude turborepo-* --exclude turbopath --exclude vercel-api-mock"
tp-test = "nextest run --workspace --release --no-fail-fast --exclude turbo --exclude turborepo-* --exclude turbopath --exclude vercel-api-mock"
Expand Down
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
crates/turbopack-tests/tests/snapshot/**/output/** linguist-generated=true
crates/turborepo-lockfiles/fixtures/*.lock text eol=lf
6 changes: 6 additions & 0 deletions .github/actions/setup-rust/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ inputs:
description: "Determiners whether the cache should be saved. If `false`, the cache is only restored."
required: false
default: "false"
install-cargo-sweep:
description: "Whether to install cargo-sweep"
required: false
default: true

runs:
using: "composite"
Expand Down Expand Up @@ -65,9 +69,11 @@ runs:
save-if: ${{ github.ref == 'refs/heads/main' && inputs.save-cache || 'false' }}

- name: "Install cargo-sweep"
if: ${{ inputs.install-cargo-sweep == 'true' }}
uses: baptiste0928/cargo-install@v1
with:
crate: cargo-sweep

- name: "Run cargo-sweep"
if: ${{ inputs.install-cargo-sweep == 'true' }}
uses: ./.github/actions/cargo-sweep
1 change: 1 addition & 0 deletions .github/actions/setup-turborepo-environment/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ runs:
shared-cache-key: turborepo-debug-build
cache-key: ${{ inputs.target }}
save-cache: true
install-cargo-sweep: false

- name: Install Turbo globally
shell: bash
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ jobs:

- name: Run tests
run: |
turbo run check-types test --filter=...[${{ github.event.pull_request.base.sha || 'HEAD^1' }}] --filter="./packages/*" --color
turbo run check-types test --filter=...[${{ github.event.pull_request.base.sha || 'HEAD^1' }}] --filter="./packages/*" --filter="!@vercel/*" --filter="!turborepo-tests*" --color
rust_prepare:
name: Check rust crates
Expand Down Expand Up @@ -1153,10 +1153,6 @@ jobs:
runs-on: ubuntu-latest
needs: determine_jobs
if: needs.determine_jobs.outputs.format == 'true'
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
TURBO_REMOTE_ONLY: true
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/turborepo-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ jobs:
github-token: "${{ secrets.GITHUB_TOKEN }}"
target: ${{ matrix.os.name }}
- name: Run JS Package Tests
run: turbo run check-types test --filter="./packages/*" --color
run: turbo run check-types test --filter="./packages/*" --filter="!@vercel/*" --filter="!turborepo-tests*" --color

build-go-darwin:
name: "Build Go for macOS"
Expand Down
Loading

0 comments on commit 8946279

Please sign in to comment.