From fd0d1363b43e7a17444a766cd11162d0d0496f4e Mon Sep 17 00:00:00 2001 From: dangreen Date: Sat, 2 Dec 2023 16:14:03 +0400 Subject: [PATCH] ci: rename jobs --- .github/workflows/checks.yml | 27 ++------------------- .github/workflows/{ci.yml => tests.yml} | 31 +++++++++++++++++++++---- 2 files changed, 29 insertions(+), 29 deletions(-) rename .github/workflows/{ci.yml => tests.yml} (64%) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index f650d1d..b013b85 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -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: @@ -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 @@ -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 diff --git a/.github/workflows/ci.yml b/.github/workflows/tests.yml similarity index 64% rename from .github/workflows/ci.yml rename to .github/workflows/tests.yml index 22ea366..973b328 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/tests.yml @@ -1,4 +1,4 @@ -name: CI +name: Tests on: pull_request: push: @@ -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: @@ -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