mirror of
https://github.com/zoriya/flood.git
synced 2025-12-05 23:06:20 +00:00
45 lines
892 B
YAML
45 lines
892 B
YAML
name: Check
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
check-real:
|
|
runs-on: ubuntu-24.04
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
node: ['22']
|
|
check: [check-source-formatting, check-types, lint]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: pnpm/action-setup@v4
|
|
- name: Use Node.js ${{ matrix.node }}
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: ${{ matrix.node }}
|
|
cache: 'pnpm'
|
|
|
|
- run: pnpm install --frozen-lockfile
|
|
- run: npm run ${{ matrix.check }}
|
|
|
|
check:
|
|
# so we do not need to update GitHub repo config
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
node: ['20']
|
|
check: [check-source-formatting, check-types, lint]
|
|
needs:
|
|
- check-real
|
|
steps:
|
|
- run: echo ok
|