Merge pull request #176 from chaintope/fix/coin_page #888
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI on Push and PullRequest | |
on: [push, pull_request] | |
jobs: | |
ci: | |
container: node:latest | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x, 18.x, 20.x] | |
env: | |
TZ: "Asia/Tokyo" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Setup libraries for Frontend | |
run: | | |
apt update | |
apt install -y ca-certificates fonts-liberation libasound2 libatk-bridge2.0-0 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgbm1 libgcc1 libglib2.0-0 libgtk-3-0 libnspr4 libnss3 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 lsb-release wget xdg-utils | |
- name: Setup Backend | |
run: | | |
cd backend | |
npm ci | |
npm run prettier-ci | |
npm run test | |
- name: Setup Frontend 16.x | |
if: ${{ matrix.node-version == '16.x' }} | |
run: | | |
cd frontend | |
npm ci | |
npm run lint | |
npm run prettier-ci | |
npm run test -- --no-watch --no-progress --browsers=ChromeHeadlessCI | |
npm run build -- --configuration=production | |
- name: Setup Frontend ${{ matrix.node-version }} | |
if: ${{ matrix.node-version != '16.x' }} | |
run: | | |
cd frontend | |
NODE_OPTIONS=--openssl-legacy-provider npm ci | |
npm run lint | |
npm run prettier-ci | |
npm run test -- --no-watch --no-progress --browsers=ChromeHeadlessCI | |
npm run build -- --configuration=production |