Skip to content

build(deps-dev): Bump babel-jest from 29.6.4 to 29.7.0 (#1094) #2377

build(deps-dev): Bump babel-jest from 29.6.4 to 29.7.0 (#1094)

build(deps-dev): Bump babel-jest from 29.6.4 to 29.7.0 (#1094) #2377

Workflow file for this run

name: Node CI
on:
push:
branches:
- main
tags:
- v*
pull_request:
jobs:
build:
strategy:
matrix:
node-version: ['18.x']
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Yarn Install
run: corepack enable && corepack prepare yarn@stable --activate && yarn install --immutable
- name: Build
run: yarn build
- uses: actions/upload-artifact@v3
if: ${{ github.event_name == 'push' && matrix.node-version == '18.x' }}
with:
name: deployment
path: dist/*
test:
runs-on: ubuntu-22.04
if: ${{ github.event_name == 'pull_request' }}
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Yarn Install
run: corepack enable && corepack prepare yarn@stable --activate && yarn install --immutable
- name: Lint
run: yarn lint
- name: Unit Test
run: yarn test:unit --ci --maxWorkers=2
- name: E2E Test
run: yarn test:e2e --headless
- uses: actions/upload-artifact@v3
if: ${{ matrix.node-version == '18.x' }}
with:
name: test-videos
path: test/e2e/videos/*
- uses: codecov/codecov-action@v3
if: ${{ matrix.node-version == '18.x' }}
publish:
runs-on: ubuntu-22.04
needs: build
if: ${{ github.event_name == 'push' }}
steps:
- uses: actions/download-artifact@v3
with:
name: deployment
path: ./dist
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
force_orphan: true
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist