Merge pull request #40 from GTZ-STUDIO/try_merge #26
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: Node.js CI | |
on: | |
push: | |
branches: ["master", "develop"] | |
pull_request: | |
branches: ["master", "develop"] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20.11.1] | |
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | |
steps: | |
- name: Checkout repository | |
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 dependancies | |
working-directory : ./lvlgg_frontend | |
run: | | |
npm install | |
npm install react-scripts | |
npm install react-router-dom | |
npm install @mui/material @emotion/react @emotion/styled | |
npm install @mui/icons-material | |
npm install axios | |
- name: Run the tests | |
working-directory : ./lvlgg_frontend | |
run: npm run test | |
- name: Build | |
working-directory : ./lvlgg_frontend | |
run: npm run build --if-present | |