Skip to content

Update README.md

Update README.md #28

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Frontend CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-and-test:
runs-on: ubuntu-latest
env:
working-directory: ./client
strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 15.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
working-directory: ${{env.working-directory}}
- name: Build project
run: npm run build
working-directory: ${{env.working-directory}}
fmt-and-lint:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: CI Checkout
uses: actions/setup-node@v2
with:
node-version: 15.x
- name: Install dependencies
run: npm install
working-directory: ./client
- name: Check formatting
run: npm run fmt:check
working-directory: ./client
- name: Lint
run: npm run lint
working-directory: ./client