Skip to content

Check balance of materials #694

Check balance of materials

Check balance of materials #694

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]
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 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
- 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