Skip to content

Commit

Permalink
ci: update PR workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedriad1 committed Jan 7, 2025
1 parent efd77f9 commit e0ab582
Showing 1 changed file with 21 additions and 11 deletions.
32 changes: 21 additions & 11 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,35 +12,45 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: ['14.x', '16.x']
node: ['18.x', '20.x']

steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@v1
- name: Setup PNPM
uses: pnpm/action-setup@v4

- name: Install Node.js ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}

- name: Install deps and build (with cache)
uses: bahmutov/npm-install@v1
cache: "pnpm"

- name: Install dependencies
shell: bash
run: pnpm install

- name: Lint
run: yarn lint --quiet
run: pnpm lint --quiet

- name: Test
run: yarn test:coverage
run: pnpm test:coverage

- name: Build
run: yarn build
run: pnpm build

size:
runs-on: ubuntu-latest
env:
CI_JOB_NUMBER: 1
steps:
- uses: actions/checkout@v1
- name: Checkout repo
uses: actions/checkout@v4

- name: Setup PNPM
uses: pnpm/action-setup@v4

- uses: andresz1/size-limit-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit e0ab582

Please sign in to comment.