Skip to content

Ajout du code coverage & github actions πŸ‘· #1

Ajout du code coverage & github actions πŸ‘·

Ajout du code coverage & github actions πŸ‘· #1

Workflow file for this run

name: Build
on:
pull_request
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- name: Checkout πŸ›Ž
uses: actions/checkout@master
- name: Setup node env πŸ—
uses: actions/setup-node@v3
with:
node-version: lts/gallium
check-latest: true
- name: Get yarn cache directory path πŸ› 
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Cache node_modules πŸ“¦
uses: actions/cache@v3
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies πŸ‘¨πŸ»β€πŸ’»
run: yarn --frozen-lockfile --silent
- name: Run build production server πŸ“¦
run: yarn build