mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-04-20 23:23:56 +03:00
Run linting only once
This commit is contained in:
parent
229dbac93e
commit
9c3b399bdf
1 changed files with 14 additions and 1 deletions
15
.github/workflows/test.yml
vendored
15
.github/workflows/test.yml
vendored
|
@ -6,6 +6,20 @@ env:
|
||||||
npm_config_cache: /tmp/npm-cache
|
npm_config_cache: /tmp/npm-cache
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
lint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 15
|
||||||
|
steps:
|
||||||
|
- name: "Checkout code"
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: "Use Node.js"
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 'lts/*'
|
||||||
|
- run: npm install
|
||||||
|
|
||||||
|
- run: npm run lint
|
||||||
|
|
||||||
unit-tests:
|
unit-tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
|
@ -31,7 +45,6 @@ jobs:
|
||||||
path: ${{ env.npm_config_cache }}
|
path: ${{ env.npm_config_cache }}
|
||||||
- run: npm install
|
- run: npm install
|
||||||
|
|
||||||
- run: npm run lint
|
|
||||||
- run: npm run test-unit
|
- run: npm run test-unit
|
||||||
|
|
||||||
integration-tests:
|
integration-tests:
|
||||||
|
|
Loading…
Add table
Reference in a new issue