Change all the dependency packages to October releases #755
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This workflow will build PRs submitted to the main branch. | |
| name: π·ββοΈ PR Builder | |
| on: | |
| pull_request: | |
| branches: [next] | |
| paths-ignore: | |
| - '**/*.md' | |
| - 'LICENSE' | |
| workflow_dispatch: | |
| # Avoid running multiple builds for the same PR. | |
| concurrency: | |
| group: pr-builder-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| jobs: | |
| lint: | |
| name: π³ ESLint (STATIC ANALYSIS) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [lts/*] | |
| pnpm-version: [latest] | |
| steps: | |
| - name: β¬οΈ Checkout | |
| id: checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: π₯‘ Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: ${{ matrix.pnpm-version }} | |
| run_install: false | |
| cache: true | |
| cache-dependency-path: pnpm-lock.yaml | |
| - name: π’ Setup node | |
| id: setup-node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'pnpm' | |
| - name: π³ Set SHAs for Nx | |
| id: set-shas | |
| uses: nrwl/nx-set-shas@v3 | |
| with: | |
| main-branch-name: 'next' | |
| - name: π§© Install Dependencies | |
| id: install-dependencies | |
| run: | | |
| pnpm install --frozen-lockfile | |
| - name: ποΈ Build Project | |
| id: build | |
| run: pnpm build | |
| - name: π³ Lint Files | |
| id: lint-with-eslint | |
| run: pnpm nx affected --base=${{ env.NX_BASE }} --head=${{ env.NX_HEAD }} --target=lint --parallel=3 | |
| typecheck: | |
| name: Κ¦ Typecheck (STATIC ANALYSIS) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [lts/*] | |
| pnpm-version: [latest] | |
| steps: | |
| - name: β¬οΈ Checkout | |
| id: checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: π₯‘ Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: ${{ matrix.pnpm-version }} | |
| run_install: false | |
| cache: true | |
| cache-dependency-path: pnpm-lock.yaml | |
| - name: π’ Setup node | |
| id: setup-node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'pnpm' | |
| - name: π³ Set SHAs for Nx | |
| id: set-shas | |
| uses: nrwl/nx-set-shas@v3 | |
| with: | |
| main-branch-name: 'next' | |
| - name: π§© Install Dependencies | |
| id: install-dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: ποΈ Build Project | |
| id: build | |
| run: pnpm build | |
| - name: βοΈ Check Type Errors | |
| run: pnpm nx affected --base=${{ env.NX_BASE }} --head=${{ env.NX_HEAD }} --target=typecheck --parallel=3 | |
| test: | |
| name: πΎ Unit Tests | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [lts/*] | |
| pnpm-version: [latest] | |
| steps: | |
| - name: β¬οΈ Checkout | |
| id: checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: π₯‘ Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: ${{ matrix.pnpm-version }} | |
| run_install: false | |
| cache: true | |
| cache-dependency-path: pnpm-lock.yaml | |
| - name: π’ Setup node | |
| id: setup-node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'pnpm' | |
| - name: π§© Install Dependencies | |
| id: install-dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: ποΈ Build Project | |
| id: build | |
| run: pnpm build | |
| - name: π Run Unit Tests | |
| id: run-tests | |
| run: pnpm test | |
| - name: Upload `@wso2/oxygen-ui` coverage reports to Codecov | |
| id: upload-wso2-oxygen-ui-coverage | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| token: ${{ env.CODECOV_TOKEN }} | |
| files: ./packages/oxygen-ui/coverage/coverage-final.json | |
| flags: '@wso2/oxygen-ui' | |
| verbose: true | |
| - name: Upload `@wso2/oxygen-icons` coverage reports to Codecov | |
| id: upload-wso2-oxygen-icons-coverage | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| token: ${{ env.CODECOV_TOKEN }} | |
| files: ./packages/oxygen-icons/coverage/coverage-final.json | |
| flags: '@wso2/oxygen-icons' | |
| verbose: true | |
| - name: Upload `@wso2/vite-plugin-oxygen-ui` coverage reports to Codecov | |
| id: upload-wso2-vite-plugin-oxygen-ui-coverage | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| token: ${{ env.CODECOV_TOKEN }} | |
| files: ./packages/vite-plugin-oxygen-ui/coverage/coverage-final.json | |
| flags: '@wso2/vite-plugin-oxygen-ui' | |
| verbose: true | |
| storybook: | |
| name: π Storybook | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [lts/*] | |
| pnpm-version: [latest] | |
| steps: | |
| - name: β¬οΈ Checkout | |
| id: checkout | |
| uses: actions/checkout@v4 | |
| - name: π₯‘ Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: ${{ matrix.pnpm-version }} | |
| run_install: false | |
| cache: true | |
| cache-dependency-path: pnpm-lock.yaml | |
| - name: π’ Setup node | |
| id: setup-node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'pnpm' | |
| - name: π§© Install Dependencies | |
| id: install-dependencies | |
| run: | | |
| pnpm install --frozen-lockfile | |
| - name: ποΈ Build Project Project | |
| id: build | |
| run: pnpm build | |
| - name: π Build Storybook | |
| id: build-storybook | |
| run: pnpm build:storybook | |
| build: | |
| name: π§ Build | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [lts/*] | |
| pnpm-version: [latest] | |
| steps: | |
| - name: β¬οΈ Checkout | |
| id: checkout | |
| uses: actions/checkout@v4 | |
| - name: π₯‘ Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: ${{ matrix.pnpm-version }} | |
| run_install: false | |
| cache: true | |
| cache-dependency-path: pnpm-lock.yaml | |
| - name: π’ Setup node | |
| id: setup-node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'pnpm' | |
| - name: π§© Install Dependencies | |
| id: install-dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: ποΈ Build Project | |
| id: build | |
| run: pnpm build |