Skip to content

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
name: Dev Continuous integration
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- name: Setup timezone
uses: zcong1993/setup-timezone@master
with:
timezone: Europe/Paris
- uses: actions/checkout@v2
- name: Fetch all history for all tags and branches
run: git fetch origin master
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Cache Node.js modules
uses: actions/cache@v1
with:
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
key: ${{ runner.OS }}-node-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
- name: Install node_modules
run: |
npm ci
- name: Lint
run: |
npm run lint
- name: Test
run: |
npm run test