fix(deps): update material-ui monorepo #583
This file contains 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
name: QA | |
on: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
branches: | |
- develop | |
jobs: | |
setup: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: | |
- 16.17.1 | |
pnpm-version: | |
- 7.13.2 | |
outputs: | |
node-version: ${{ steps.set-node-version.outputs.node-version }} | |
pnpm-version: ${{ steps.set-pnpm-version.outputs.pnpm-version }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup pnpm v${{ matrix.pnpm-version }} | |
uses: pnpm/action-setup@v2 | |
with: | |
version: ${{ matrix.pnpm-version }} | |
- name: Setup node.js v${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
cache: pnpm | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
run: pnpm install | |
- name: Cache setup | |
uses: actions/cache@v3 | |
id: cache-setup | |
with: | |
path: ./* | |
key: ${{ github.sha }}-${{ github.run_number }}-${{ github.run_attempt }} | |
- name: Set node-version | |
id: set-node-version | |
run: echo ::set-output name=node-version::${{ matrix.node-version }} | |
- name: Set pnpm-version | |
id: set-pnpm-version | |
run: echo ::set-output name=pnpm-version::${{ matrix.pnpm-version }} | |
commitlint: | |
needs: setup | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: ${{ needs.setup.outputs.pnpm-version }} | |
- name: Setup node.js | |
uses: actions/setup-node@v3 | |
with: | |
cache: pnpm | |
node-version: ${{ needs.setup.outputs.node-version }} | |
- name: Restore setup | |
uses: actions/cache@v3 | |
id: restore-setup | |
with: | |
path: ./* | |
key: ${{ github.sha }}-${{ github.run_number }}-${{ github.run_attempt }} | |
- name: Run commitlint | |
run: pnpm commitlint --from=${{ github.sha }} | |
tsc: | |
needs: setup | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: ${{ needs.setup.outputs.pnpm-version }} | |
- name: Setup node.js | |
uses: actions/setup-node@v3 | |
with: | |
cache: pnpm | |
node-version: ${{ needs.setup.outputs.node-version }} | |
- name: Restore setup | |
uses: actions/cache@v3 | |
id: restore-setup | |
with: | |
path: ./* | |
key: ${{ github.sha }}-${{ github.run_number }}-${{ github.run_attempt }} | |
- name: Run tsc | |
run: pnpm ts | |
prettier: | |
needs: setup | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: ${{ needs.setup.outputs.pnpm-version }} | |
- name: Setup node.js | |
uses: actions/setup-node@v3 | |
with: | |
cache: pnpm | |
node-version: ${{ needs.setup.outputs.node-version }} | |
- name: Restore setup | |
uses: actions/cache@v3 | |
id: restore-setup | |
with: | |
path: ./* | |
key: ${{ github.sha }}-${{ github.run_number }}-${{ github.run_attempt }} | |
- name: Run prettier | |
run: pnpm prettier | |
eslint: | |
needs: setup | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: ${{ needs.setup.outputs.pnpm-version }} | |
- name: Setup node.js | |
uses: actions/setup-node@v3 | |
with: | |
cache: pnpm | |
node-version: ${{ needs.setup.outputs.node-version }} | |
- name: Restore setup | |
uses: actions/cache@v3 | |
id: restore-setup | |
with: | |
path: ./* | |
key: ${{ github.sha }}-${{ github.run_number }}-${{ github.run_attempt }} | |
- name: Run eslint | |
run: pnpm eslint |