diff --git a/.github/workflows/_performance-budget.yml b/.github/workflows/_performance-budget.yml deleted file mode 100644 index 5312f3c2..00000000 --- a/.github/workflows/_performance-budget.yml +++ /dev/null @@ -1,66 +0,0 @@ -name: "Performance checks" - -on: - workflow_call: - -permissions: - pull-requests: write - -jobs: - size: - runs-on: ubuntu-latest - env: - CI_JOB_NUMBER: 1 - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Read node version from `.nvmrc` file - id: nvmrc - shell: bash - run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc) - - - name: Install required node.js version - uses: actions/setup-node@v4 - with: - node-version: ${{ steps.nvmrc.outputs.NODE_VERSION }} - - - name: Install pnpm - uses: pnpm/action-setup@v4 - id: pnpm-install - with: - run_install: false - - - name: Get pnpm store directory - id: pnpm-cache - shell: bash - run: | - echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT - - - uses: actions/cache@v4 - name: Setup pnpm cache - with: - path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm-store- - - - name: Install dependencies - run: pnpm install - - - name: Build - run: pnpm build - - - uses: andresz1/size-limit-action@v1.8.0 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - package_manager: pnpm - skip_step: build - directory: ./apps/spotlight - - - uses: andresz1/size-limit-action@v1.8.0 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - package_manager: pnpm - skip_step: build - directory: ./packages/design \ No newline at end of file diff --git a/.github/workflows/_validate.yml b/.github/workflows/_validate.yml index f7efcab3..c1ae7292 100644 --- a/.github/workflows/_validate.yml +++ b/.github/workflows/_validate.yml @@ -2,6 +2,12 @@ name: Validate on: workflow_call: + inputs: + playwright_version: + description: Installed playwright version + required: true + default: "1.48.1" + type: string jobs: run-tests: @@ -44,8 +50,16 @@ jobs: - name: Install dependencies run: pnpm install - - name: Install playwright - run: pnpm dlx playwright@1.48.1 install --with-deps + - name: Cache Playwright binaries + uses: actions/cache@v4 + id: playwright-cache + with: + path: ~/.cache/ms-playwright + key: ${{ runner.os }}-playwright-${{ inputs.playwright_version }} + + - name: Install Playwright + run: pnpm dlx playwright@${{ inputs.playwright_version }} install --with-deps + if: steps.playwright-cache.outputs.cache-hit != 'true' # While most of the test suite is self-contained, the tests for the demo # servers require a prod build of @atj/server. diff --git a/.github/workflows/monitor.yml b/.github/workflows/monitor.yml deleted file mode 100644 index df84d51c..00000000 --- a/.github/workflows/monitor.yml +++ /dev/null @@ -1,11 +0,0 @@ -name: Monitor budget - -on: - push: - branches: - - main - pull_request: - -jobs: - performance-budget: - uses: ./.github/workflows/_performance-budget.yml \ No newline at end of file