Skip to content

Merge pull request #9 from Hkaar/cms #29

Merge pull request #9 from Hkaar/cms

Merge pull request #9 from Hkaar/cms #29

Workflow file for this run

name: CI
on:
push:
branches:
- master
- dev
paths-ignore:
- "**.md"
- "LICENSE"
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: "actions/checkout@v4"
- name: Cache npm modules
uses: actions/cache@v4
with:
path: |
~/.npm
!~/.npm/_logs
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: |
npm-
- name: Install dependecies
run: npm install
- name: Run Linter
run: npm run lint
test:
name: Tests
runs-on: ubuntu-latest
needs: [lint]
steps:
- uses: "actions/checkout@v4"
- name: Cache npm modules
uses: actions/cache@v4
with:
path: |
~/.npm
!~/.npm/_logs
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: |
npm-
- name: Install dependecies
run: npm install
- name: Run tests
run: npm run test -- --run