Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: rename jobs #63

Merged
merged 1 commit into from
Dec 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 2 additions & 25 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
jobs:
list-workspaces:
runs-on: ubuntu-latest
name: List workspaces
name: list workspaces
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
Expand All @@ -24,7 +24,7 @@ jobs:
strategy:
matrix:
workspace: ${{ fromJson(needs.list-workspaces.outputs.matrix) }}
name: ${{ matrix.workspace }} size-limit
name: ${{ matrix.workspace }} / size-limit
steps:
- name: Checkout the repository
uses: actions/checkout@v4
Expand All @@ -43,29 +43,6 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
package_manager: pnpm
directory: packages/${{ matrix.workspace }}/
typings:
runs-on: ubuntu-latest
needs: list-workspaces
strategy:
matrix:
workspace: ${{ fromJson(needs.list-workspaces.outputs.matrix) }}
name: ${{ matrix.workspace }} typings
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 16
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Check typings
run: pnpm --filter ${{ matrix.workspace }} test:types
editorconfig:
runs-on: ubuntu-latest
name: editorconfig
Expand Down
31 changes: 27 additions & 4 deletions .github/workflows/ci.yml → .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: Tests
on:
pull_request:
push:
Expand All @@ -7,7 +7,7 @@ on:
jobs:
list-workspaces:
runs-on: ubuntu-latest
name: List workspaces
name: list workspaces
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
Expand All @@ -19,13 +19,36 @@ jobs:
node-version: 16
- id: set-matrix
run: node -e "console.log('::set-output name=matrix::' + JSON.stringify(fs.readdirSync('packages')))"
test:
types:
runs-on: ubuntu-latest
needs: list-workspaces
strategy:
matrix:
workspace: ${{ fromJson(needs.list-workspaces.outputs.matrix) }}
name: ${{ matrix.workspace }} tests
name: ${{ matrix.workspace }} / types
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 16
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Check types
run: pnpm --filter ${{ matrix.workspace }} test:types
unit:
runs-on: ubuntu-latest
needs: list-workspaces
strategy:
matrix:
workspace: ${{ fromJson(needs.list-workspaces.outputs.matrix) }}
name: ${{ matrix.workspace }} / unit
steps:
- name: Checkout the repository
uses: actions/checkout@v4
Expand Down
Loading