chore(ci): added github actions

This commit is contained in:
Corentin Thomasset 2022-04-13 23:02:04 +02:00
parent 655d9d22e3
commit 56d36ea3c0
No known key found for this signature in database
GPG key ID: DBD997E935996158
2 changed files with 107 additions and 0 deletions

38
.github/workflows/ci.yml vendored Normal file
View file

@ -0,0 +1,38 @@
name: ci
on: push
jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
with:
fetch-depth: 0
- name: Setup node env
uses: actions/setup-node@v3.0.0
with:
node-version: 16
- name: Cache node_modules
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: npm ci
- name: Run linters
run: npm run lint
- name: Run unit test
run: npm run test
- name: Build the app
run: npm run build