Skip to content

update

update #176

Workflow file for this run

name: Test
on:
push:
branches-ignore:
- gh-pages
- releases/**
pull_request:
branches-ignore:
- gh-pages
- releases/**
types:
- opened
- synchronize
- reopened
env:
CI: true
TZ: Asia/Tokyo
CHROME_BIN: /usr/bin/google-chrome
jobs:
build:
name: "Build on Node.js ${{ matrix.node }} OS: ${{matrix.os}}"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [18]
steps:
- name: Checkout codes
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node}}
cache: 'yarn'
- name: Install
run: yarn install --frozen-lockfile
- name: Build
run: yarn build
- name: Cache dist
uses: actions/cache@v3
with:
path: dist
key: ${{ matrix.os }}-node-v${{ matrix.node }}-${{ github.sha }}
lint:
name: "Lint on Node.js ${{ matrix.node }} OS: ${{matrix.os}}"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [18]
steps:
- name: Checkout codes
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: 'yarn'
- name: Install
run: yarn install --frozen-lockfile
- name: Lint
run: yarn lint
test:
needs:
- build
name: "Test on Node.js ${{ matrix.node }} OS: ${{matrix.os}}"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [18]
steps:
- name: Setup google chrome
uses: browser-actions/setup-chrome@latest
with:
chrome-version: stable
- run: chrome --version
- name: Setup firefox
uses: browser-actions/setup-firefox@latest
with:
firefox-version: latest
- run: firefox --version
- name: Checkout codes
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: 'yarn'
- name: Install
run: yarn install --frozen-lockfile
- name: Flow Types
run: yarn flow
- name: TS Types
run: yarn test:types
- name: Test Coverage
run: yarn test:cover
- name: Unit tests
run: yarn test:unit:ci
- name: Restore dist cache
uses: actions/cache@v3
with:
path: dist
key: ${{ matrix.os }}-node-v${{ matrix.node }}-${{ github.sha }}
- name: E2E Tests
run: xvfb-run --auto-servernum yarn test:e2e