mirror of
https://github.com/theoludwig/theoludwig.git
synced 2024-11-14 00:03:12 +01:00
39 lines
984 B
YAML
39 lines
984 B
YAML
name: 'Divlo'
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
branches: [master]
|
|
|
|
jobs:
|
|
ci:
|
|
runs-on: 'ubuntu-latest'
|
|
strategy:
|
|
matrix:
|
|
node-version: [14.x]
|
|
steps:
|
|
- uses: 'actions/checkout@v2.3.4'
|
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: 'actions/setup-node@v2.1.5'
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
- name: 'Cache dependencies'
|
|
uses: 'actions/cache@v2.1.5'
|
|
with:
|
|
path: '.npm'
|
|
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
|
|
|
|
- run: 'npm install --global npm@7'
|
|
- run: 'npm ci --cache .npm --prefer-offline'
|
|
- run: 'npm run lint:commit -- --to "${{ github.sha }}"'
|
|
- run: 'npm run lint:docker'
|
|
- run: 'npm run lint:editorconfig'
|
|
- run: 'npm run lint:markdown'
|
|
- run: 'npm run lint:typescript'
|
|
- run: 'npm run build'
|
|
- run: 'npm run lighthouse'
|
|
- run: 'npm run test'
|