Skip to content

refactor: switch to a monorepo structure WIP #3

refactor: switch to a monorepo structure WIP

refactor: switch to a monorepo structure WIP #3

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
# This job installs dependencies once and caches them.
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Enable Corepack
shell: bash
run: corepack enable
- name: Setup Node & yarn
uses: actions/setup-node@v4
with:
node-version: '22.11.0' # jod
cache: 'yarn'
- uses: ./.github/actions/cache-deps
with:
cache-key: web-core-modules-${{ hashFiles('/package.json', '/yarn.lock') }}
- name: Yarn install
shell: bash
run: yarn install --immutable
- name: Yarn after install
shell: bash
run: yarn after-install
eslint:
needs: build
permissions:
checks: write
pull-requests: read
statuses: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/cache-deps
with:
cache-key: web-core-modules-${{ hashFiles('/package.json', '/yarn.lock') }}
- uses: CatChen/[email protected]
with:
request-changes: true # optional
fail-check: true # optional
github-token: ${{ secrets.GITHUB_TOKEN }} # optional
directory: './' # optional
targets: 'src' # optional
config-path: './eslint.config.mjs'
test:
needs: build
permissions:
contents: read
checks: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/cache-deps
with:
cache-key: web-core-modules-${{ hashFiles('/package.json', '/yarn.lock') }}
- name: Annotations and coverage report
uses: ArtiomTr/[email protected]
with:
skip-step: install
annotations: failed-tests
package-manager: yarn
test-script: yarn test:ci
github-token: ${{ secrets.GITHUB_TOKEN }}