this is a new version of frontend #20
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: Tests CI | |
on: | |
pull_request: | |
branches: ['master'] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20.x] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'npm' | |
- name: Install dependencies from Backend package.json | |
run: (cd backend && npm ci) | |
- name: Run Backend test | |
run: (cd backend && npm run test && npm run test:cucumber) | |
- name: Install dependencies from Frontend package.json | |
run: (cd frontend && npm ci) | |
- name: Run Frontend test | |
run: (cd frontend && npm run test) | |
- name: Build Backend | |
run: (cd backend && npm run build) | |
- name: Build Frontend | |
run: (cd frontend && npm run build) |