Skip to content

Commit

Permalink
Merge branch 'main' into chore/standardize-turborepo-prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
NicholasLYang committed May 16, 2023
2 parents 9a5c143 + 03de43d commit 795bb7b
Show file tree
Hide file tree
Showing 179 changed files with 7,355 additions and 2,698 deletions.
47 changes: 42 additions & 5 deletions .github/workflows/turborepo-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ jobs:
outputs:
stage-branch: "${{ steps.stage.outputs.STAGE_BRANCH }}"

smoke-test:
go-smoke-test:
name: Go Unit Tests
runs-on: ubuntu-latest
needs: [stage]
steps:
Expand All @@ -75,13 +76,49 @@ jobs:
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
target: ${{ matrix.os.name }}
- name: Run Unit Tests
- name: Run Go Unit Tests
run: turbo run test --filter=cli --color

rust-smoke-test:
name: Rust Unit Tests
runs-on: ubuntu-latest
needs: [stage]
steps:
- name: Show Stage Commit
run: echo "${{ needs.stage.outputs.stage-branch }}"
- uses: actions/checkout@v3
with:
ref: ${{ needs.stage.outputs.stage-branch }}
- name: Build turborepo CLI from source
uses: ./.github/actions/setup-turborepo-environment
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
target: ${{ matrix.os.name }}
- name: Run Rust Unit Tests
run: cargo tr-test

js-smoke-test:
name: JS Package Tests
runs-on: ubuntu-latest
needs: [stage]
steps:
- name: Show Stage Commit
run: echo "${{ needs.stage.outputs.stage-branch }}"
- uses: actions/checkout@v3
with:
ref: ${{ needs.stage.outputs.stage-branch }}
- name: Build turborepo CLI from source
uses: ./.github/actions/setup-turborepo-environment
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
target: ${{ matrix.os.name }}
- name: Run JS Package Tests
run: turbo run check-types test --filter="./packages/*" --filter="\!@vercel/*" --color

build-go-darwin:
name: "Build Go for macOS"
runs-on: macos-latest
needs: [stage, smoke-test]
needs: [stage, go-smoke-test, rust-smoke-test, js-smoke-test]
steps:
- name: Show Stage Commit
run: echo "${{ needs.stage.outputs.stage-branch }}"
Expand Down Expand Up @@ -118,7 +155,7 @@ jobs:
build-go-cross:
name: "Build Go for Windows and Linux"
runs-on: ubuntu-latest
needs: [stage, smoke-test]
needs: [stage, go-smoke-test, rust-smoke-test, js-smoke-test]
container:
image: docker://ghcr.io/vercel/turbo-cross:v1.18.5
steps:
Expand Down Expand Up @@ -165,7 +202,7 @@ jobs:

build-rust:
name: "Build Rust"
needs: [stage, smoke-test]
needs: [stage, go-smoke-test, rust-smoke-test, js-smoke-test]
strategy:
fail-fast: false
matrix:
Expand Down
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ crates/turbopack-ecmascript/tests/analyzer/graph
crates/turbopack-ecmascript/tests/tree-shaker
crates/next-transform-strip-page-exports/tests
crates/next-transform-dynamic/tests

# generators
*.hbs
19 changes: 19 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Thanks for your interest in contributing to Turbo!
- [Updating `turbo`](#updating-turbo)
- [Manually testing `turbo`](#manually-testing-turbo)
- [Publishing `turbo` to the npm registry](#publishing-turbo-to-the-npm-registry)
- [Creating a new release blog post](#creating-a-new-release-blog-post)
- [Adding A New Crate](#adding-a-new-crate)
- [Contributing to Turbopack](#contributing-to-turbopack)
- [Turbopack Architecture](#turbopack-architecture)
Expand Down Expand Up @@ -160,6 +161,24 @@ These lists are by no means exhaustive. Feel free to add to them with other stra

See [the publishing guide](./release.md#release-turborepo).

## Creating a new release blog post

Creating a new release post can be done via a turborepo generator. Run the following command from anywhere within the repo:

```bash
turbo generate run "blog - release post"
```

This will walk you through creating a new blog post from start to finish.

NOTE: If you would like to update the stats (github stars / npm downloads / time saved) for an existing blog post that has yet to be published (useful if time has passed since the blog post was created, and up to date stats are required before publishing) - run:

```bash
turbo generate run "blog - "blog - update release post stats"
```
and choose the blog post you would like to update.
## Adding A New Crate
When adding a new crate to the repo, it is essential that it is included/excluded from the
Expand Down
Loading

0 comments on commit 795bb7b

Please sign in to comment.