Skip to content

Merge pull request #950 from bervProject/dependabot/npm_and_yarn/redu… #2080

Merge pull request #950 from bervProject/dependabot/npm_and_yarn/redu…

Merge pull request #950 from bervProject/dependabot/npm_and_yarn/redu… #2080

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: [18.x, 20.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@v3
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