Skip to content

Commit

Permalink
ci: rename jobs (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
dangreen authored Dec 2, 2023
1 parent fe4a89c commit f844e7e
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 29 deletions.
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

0 comments on commit f844e7e

Please sign in to comment.