Skip to content

Commit

Permalink
Separate lint CI job from the unit test one.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrizagidulin committed Sep 4, 2024
1 parent a3dc10b commit 9101225
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/lint-project.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: static-analysis

on:
push:
branches:
- "*"
pull_request:

# Allows you to run this workflow manually from the Actions tab
Expand All @@ -28,4 +25,3 @@ jobs:
cache: 'npm'
- run: npm i --legacy-peer-deps
- run: npm run lint
- run: npm run test
27 changes: 27 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: unit-tests

on:
pull_request:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
test:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm i --legacy-peer-deps
- run: npm run test

0 comments on commit 9101225

Please sign in to comment.