Skip to content

Commit

Permalink
fix: Added separate tests job. Added npm cache (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
josebui authored Dec 21, 2021
1 parent 9651418 commit 164ab58
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,34 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: '16'
cache: 'npm'

- name: Install dependencies
run: npm install

- name: Run lint checks
run: npm run lint

test:
tests:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '16'
cache: 'npm'

- name: Install dependencies
run: npm install

- name: Run test
run: npm run test

tests-coverage:
runs-on: ubuntu-latest

steps:
Expand All @@ -40,6 +60,7 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: '16'
cache: 'npm'

- name: Install dependencies
run: npm install
Expand All @@ -58,6 +79,7 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: '16'
cache: 'npm'

- name: Install dependencies
run: npm install
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/localization.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: '16'
cache: 'npm'

- name: Install dependencies
run: npm install
Expand Down

0 comments on commit 164ab58

Please sign in to comment.