Check balance of materials #694
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] | |
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 |