Skip to content

Commit

Permalink
(chore) Update CI to leverage turbo
Browse files Browse the repository at this point in the history
  • Loading branch information
denniskigen committed Oct 27, 2022
1 parent 2aaf046 commit 58abf5d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v2
- uses: pnpm/action-setup@v2.0.1
- uses: pnpm/action-setup@v2
with:
version: 7.0.0
- name: Use Node.js ${{ matrix.node-version }}
Expand All @@ -27,22 +27,22 @@ jobs:
- name: 📀 Install dependencies
run: pnpm install

- name: 🧹 Lint
run: pnpm run lint

- name: 😍 Prettier check
run: pnpm run check
- name: Setup a local cache server for Turborepo
uses: felixmosh/turborepo-gh-artifacts@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
server-token: ${{ secrets.TURBO_SERVER_TOKEN }}

- name: 🧪 Test
run: pnpm run coverage
- name: 🧹 Lint and Test
run: pnpm turbo lint check coverage --color --api="http://127.0.0.1:9080" --token="${{ secrets.TURBO_SERVER_TOKEN }}" --team="${{ github.repository_owner }}"

- name: ⏫ Upload coverage
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: 👷‍♀️ Build
run: pnpm run build
run: pnpm turbo build --color --concurrency=5 --api="http://127.0.0.1:9080" --token="${{ secrets.TURBO_SERVER_TOKEN }}" --team="${{ github.repository_owner }}"

- name: ⏫ Upload build artifacts
uses: actions/upload-artifact@v2
Expand Down
7 changes: 7 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,16 @@
"build": {
"outputs": ["build/**"]
},
"check": {
"outputs": []
},
"lint": {
"outputs": []
},
"coverage": {
"dependsOn": [],
"outputs": []
},
"test": {
"dependsOn": [],
"outputs": []
Expand Down

1 comment on commit 58abf5d

@vercel
Copy link

@vercel vercel bot commented on 58abf5d Oct 27, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.