Skip to content

Commit e77f632

Browse files
authored
Use turbo cache on CI (#176)
* use turbo cache on CI * fix action * add changeset
1 parent addf165 commit e77f632

File tree

3 files changed

+12
-22
lines changed

3 files changed

+12
-22
lines changed

.changeset/chilly-waves-exercise.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@fabrix-framework/chakra-ui": patch
3+
"@fabrix-framework/fabrix": patch
4+
"@fabrix-framework/graphql-config": patch
5+
---
6+
7+
Use turbo cache on CI

.github/actions/ci/action.yaml

+5-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
name: Lint
2+
description: Run linter and type-checker and test
23

3-
inputs:
4-
filter:
5-
description: 'The package to lint'
6-
required: true
7-
8-
# Run linter and type-checker
94
runs:
105
using: composite
116
steps:
@@ -21,6 +16,8 @@ runs:
2116
- name: Install dependencies
2217
run: pnpm install
2318
shell: bash
24-
- name: Lint
25-
run: npx turbo run lint test type-check --filter="./${{ inputs.filter }}"
19+
- name: Launch Turbo Remote Cache Server
20+
uses: dtinth/setup-github-actions-caching-for-turbo@v1.3.0
21+
- name: Run lint / test / type-check
22+
run: npx turbo run lint test type-check
2623
shell: bash

.github/workflows/ci-packages.yaml

-14
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,12 @@ concurrency:
1212

1313
jobs:
1414
ci:
15-
strategy:
16-
matrix:
17-
packages:
18-
- fabrix
19-
- graphql-config
20-
- chakra-ui
2115
runs-on: ubuntu-latest
2216
steps:
2317
- uses: actions/checkout@v4
2418
with:
2519
fetch-depth: 2
26-
- uses: tj-actions/changed-files@v45
27-
id: changed-files
28-
with:
29-
files: |
30-
packages/${{ matrix.packages }}/**
3120
- uses: ./.github/actions/ci
32-
if: steps.changed-files.outputs.any_changed == 'true'
33-
with:
34-
filter: "packages/${{ matrix.packages }}"
3521

3622
# A job to check if all examples can be built successfully to detect unwanted breaking changes
3723
build-examples:

0 commit comments

Comments
 (0)