ci: use turbo remote cache
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
19
.github/workflows/build-and-test.yml
vendored
19
.github/workflows/build-and-test.yml
vendored
@@ -15,7 +15,9 @@ concurrency:
|
|||||||
jobs:
|
jobs:
|
||||||
build-and-test:
|
build-and-test:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
env:
|
||||||
|
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
|
||||||
|
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest]
|
os: [ubuntu-latest]
|
||||||
@@ -34,23 +36,14 @@ jobs:
|
|||||||
- name: Install Dependencies 👨🏻💻
|
- name: Install Dependencies 👨🏻💻
|
||||||
uses: ./.github/actions/install-dependencies
|
uses: ./.github/actions/install-dependencies
|
||||||
|
|
||||||
- name: Setup Turbo cache 🏎️
|
|
||||||
id: turbo-cache
|
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: .turbo
|
|
||||||
key: turbo-${{ runner.os }}-${{ github.sha }}
|
|
||||||
restore-keys: |
|
|
||||||
turbo-${{ runner.os }}-
|
|
||||||
|
|
||||||
- name: Run linter 🧹
|
- name: Run linter 🧹
|
||||||
run: pnpm run lint --cache-dir=.turbo
|
run: pnpm run lint
|
||||||
|
|
||||||
- name: Build Library 👷
|
- name: Build Library 👷
|
||||||
run: pnpm run build --cache-dir=.turbo
|
run: pnpm run build
|
||||||
|
|
||||||
- name: Run tests 🧪
|
- name: Run tests 🧪
|
||||||
uses: cypress-io/github-action@v6
|
uses: cypress-io/github-action@v6
|
||||||
with:
|
with:
|
||||||
install-command: pnpm cypress install
|
install-command: pnpm cypress install
|
||||||
command: pnpm run test --cache-dir=.turbo
|
command: pnpm run test
|
||||||
|
|||||||
Reference in New Issue
Block a user