Skip to content

Merge pull request #1561 from bervProject/dependabot/npm_and_yarn/esl… #3432

Merge pull request #1561 from bervProject/dependabot/npm_and_yarn/esl…

Merge pull request #1561 from bervProject/dependabot/npm_and_yarn/esl… #3432

Workflow file for this run

name: Node.js CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
SKIP_PREFLIGHT_CHECK: true
jobs:
build:
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [20.x, 22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: yarn --frozen-lockfile
- name: Lint
run: yarn lint
- name: Build
run: yarn build
env:
CI: false
PUBLIC_URL: /my-personal-web-react/
# - name: Test
# run: yarn test
#- name: Upload Codecov
# run: bash <(curl -s https://codecov.io/bash)
# if: ${{ matrix.node-version == '14.x' }}
# - name: Deploy
# if: ${{ github.event_name == 'push' && matrix.node-version == '18.x' }}
# uses: peaceiris/actions-gh-pages@v3
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: ./build