Skip to content

chore(deps-dev): bump react and @types/react (#65) #164

chore(deps-dev): bump react and @types/react (#65)

chore(deps-dev): bump react and @types/react (#65) #164

Workflow file for this run

name: CI
concurrency:
group: '${{ github.workflow }}-${{ github.head_ref || github.ref }}'
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
name: Test (Node ${{ matrix.node }}, ESLint ${{ matrix.eslint }})
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
node: [18, 20, 22]
eslint: ['latest']
include:
- node: 22
eslint: 9.14
- node: 22
eslint: 9.15
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Dependencies
uses: ./.github/actions/install-dependencies
with:
node-version: ${{ matrix.node }}
- name: Install ESLint ${{ matrix.eslint }}
if: matrix.eslint != 'latest'
run: pnpm add -d -w eslint@${{ matrix.eslint }}
- name: Build
run: pnpm run build
- name: Run test
run: pnpm run test
check:
name: Code check (${{ matrix.script }})
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
script: ['lint', 'format']
include:
- needsBuild: true
script: 'lint'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Dependencies
uses: ./.github/actions/install-dependencies
- name: Build
if: ${{ matrix.needsBuild }}
run: pnpm build
- name: Run ${{ matrix.script }}
run: pnpm run ${{ matrix.script }}
ci-ok:
name: CI OK
runs-on: ubuntu-latest
if: always()
needs: [test, check]
env:
FAILURE: ${{ contains(join(needs.*.result, ','), 'failure') }}
steps:
- name: Check for failure
run: |
echo $FAILURE
if [ "$FAILURE" = "false" ]; then
exit 0
else
exit 1
fi