1
0
mirror of https://github.com/NickKaramoff/shareon synced 2025-02-13 10:00:41 +01:00
Nikita Karamov 25c8de44f8
Always run size checks
In other case, the size-limit will not have an available baseline for PRs
2023-03-20 20:36:07 +01:00

38 lines
852 B
YAML

name: Test
on:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: latest
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: pnpm
- name: Install dependencies
run: pnpm install --ignore-scripts
- name: Lint
run: pnpm lint
env:
FORCE_COLOR: 2
- name: Build
run: pnpm build
env:
FORCE_COLOR: 2
- name: Check size
uses: getsentry/size-limit-action@v5
with:
main_branch: main
github_token: ${{ secrets.GITHUB_TOKEN }}
skip_step: build