chore(deps): update dependency @typescript-eslint/eslint-plugin to v8.26.0 #149
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: Pull request analysis | |
on: | |
pull_request: | |
pull_request_target: | |
jobs: | |
build-head: | |
name: Build head | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: ${{github.event.pull_request.head.ref}} | |
- uses: pnpm/action-setup@v3 | |
with: | |
version: latest | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: pnpm | |
- name: Install dependencies | |
run: pnpm i | |
- name: Build | |
run: pnpm analyze | |
- name: Upload stats.json | |
uses: actions/upload-artifact@v3 | |
with: | |
name: head-stats | |
path: .analysis/stats-0.json | |
build-base: | |
name: Build base | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.base_ref }} | |
- uses: pnpm/action-setup@v3 | |
with: | |
version: latest | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: pnpm | |
- name: Install dependencies | |
run: pnpm i | |
- name: Build | |
run: pnpm analyze | |
- name: Upload stats.json | |
uses: actions/upload-artifact@v3 | |
with: | |
name: base-stats | |
path: .analysis/stats-0.json | |
# run the action against the stats.json files | |
compare: | |
name: 'Compare base & head bundle sizes' | |
runs-on: ubuntu-latest | |
needs: [build-base, build-head] | |
permissions: | |
pull-requests: write | |
steps: | |
- uses: actions/download-artifact@v3 | |
- uses: twk3/[email protected] | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
current-stats-json-path: ./head-stats/stats-0.json | |
base-stats-json-path: ./base-stats/stats-0.json |