Skip to content

Git workflow update #215

Git workflow update

Git workflow update #215

name: Frontend Unit Test Run
on:
push:
branches: [develop, 'v**-develop', master]
pull_request:
branches: [develop, 'v**-develop', master]
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./front
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- uses: actions/cache@v2
id: front-modules-cache
if: github.ref != 'refs/head/master'
with:
path: |
**/node_modules
key: ${{ runner.os }}-fe-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
- name: Install deps
if: steps.front-modules-cache.outputs.cache-hit != 'true'
run: npm ci
- run: npm test -- --coverage
- name: Coverage
uses: codecov/codecov-action@v2
with:
flags: front-end
files: ./front/coverage/lcov.info