shareon/.github/workflows/main.yml

38 lines
852 B
YAML
Raw Permalink Normal View History

2023-01-25 14:06:33 -05:00
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
2023-01-25 14:25:21 -05:00
cache: pnpm
2023-01-25 14:06:33 -05:00
- 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
2023-01-25 14:25:21 -05:00
uses: getsentry/size-limit-action@v5
2023-01-25 14:06:33 -05:00
with:
2023-03-20 14:13:11 -04:00
main_branch: main
2023-01-25 14:06:33 -05:00
github_token: ${{ secrets.GITHUB_TOKEN }}
skip_step: build