Skip to content

Commit

Permalink
#1 Pipeline setup
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlukac committed Dec 1, 2023
1 parent 18a570f commit 6d7ab2f
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Default

on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '21.x'

- name: Dependencies setup
run: npm ci

- name: Build
run: npm run build --if-present

- name: Run unit tests with coverage
run: npm run test:cov
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@
"**/*.(t|j)s"
],
"coverageDirectory": "../coverage",
"coverageThreshold": {
"global": {
"functions": 30,
"lines": 40
}
},
"testEnvironment": "node"
}
}

0 comments on commit 6d7ab2f

Please sign in to comment.