mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-20 21:23:08 +03:00
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
40 lines
840 B
YAML
40 lines
840 B
YAML
name: ci
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- chore/all-my-stuffs
|
|
|
|
jobs:
|
|
ci:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
|
- run: |
|
|
echo "Before: corepack version => $(corepack --version || echo 'not installed')"
|
|
npm install -g corepack@latest
|
|
echo "After : corepack version => $(corepack --version)"
|
|
corepack enable
|
|
pnpm --version
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 20
|
|
cache: 'pnpm'
|
|
|
|
- name: Install dependencies
|
|
run: pnpm i
|
|
|
|
- name: Run linters
|
|
run: pnpm lint
|
|
|
|
- name: Run unit test
|
|
run: pnpm test
|
|
|
|
- name: Type check
|
|
run: pnpm typecheck
|
|
|
|
- name: Build the app
|
|
run: pnpm build
|