Skip to content
Snippets Groups Projects
Commit 29d7927f authored by Martin Immanuel Burgos's avatar Martin Immanuel Burgos
Browse files

Add new file

parent 9b666b1b
No related branches found
No related tags found
No related merge requests found
name: Frontend build-test and unit-tests
on:
push:
branches: [main]
paths:
- "client/**"
- "!**.md"
pull_request:
branches: [main]
paths:
- "client/**"
- "!**.md"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "15"
- name: Cache frontend node modules
id: cacheStep
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: client/node_modules
key: ${{ runner.os }}-build-${{ hashFiles('./client/package-lock.json') }}
- name: Install frontend dependencie
if: steps.cacheStep.outputs.cache-hit != 'true'
run: cd client && npm install
- name: Builds frontend
run: cd client && npm run build --if-present
- name: Tests frontend
run: cd client && npm test
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment