2021-04-18 22:30:27 +02:00
|
|
|
name: 'Divlo'
|
2021-04-18 01:56:23 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2021-04-20 19:47:57 +02:00
|
|
|
branches: [master]
|
2021-04-18 01:56:23 +02:00
|
|
|
pull_request:
|
2021-04-20 19:47:57 +02:00
|
|
|
branches: [master]
|
2021-04-18 01:56:23 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
ci:
|
|
|
|
runs-on: 'ubuntu-latest'
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
node-version: [14.x]
|
|
|
|
steps:
|
2021-05-13 13:35:37 +02:00
|
|
|
- uses: 'actions/checkout@v2.3.4'
|
2021-04-18 01:56:23 +02:00
|
|
|
|
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
|
|
uses: 'actions/setup-node@v2.1.5'
|
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
|
|
|
|
- name: 'Cache dependencies'
|
2021-05-28 08:44:01 +02:00
|
|
|
uses: 'actions/cache@v2.1.6'
|
2021-04-18 01:56:23 +02:00
|
|
|
with:
|
|
|
|
path: '.npm'
|
|
|
|
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
|
|
|
|
|
2021-04-20 01:15:07 +02:00
|
|
|
- run: 'npm install --global npm@7'
|
2021-04-18 01:56:23 +02:00
|
|
|
- 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'
|
2021-04-18 23:09:51 +02:00
|
|
|
- run: 'npm run test'
|