Skip to content

Commit

Permalink
GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJaredWilcurt authored Oct 6, 2024
1 parent e635e6e commit dbfcaf2
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!-- Replace 0 with the issue this PR relates to -->
Related to issue #0


**Notes for reviewer:**

*


<!-- If you don't know what this is, ignore it -->
**Checklist:**

* [ ] Update dependencies
* [ ] Bump
22 changes: 22 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# v4
version: 2
updates:
- package-ecosystem: "npm"
target-branch: main
directory: "."
schedule:
interval: "weekly"
versioning-strategy: increase
groups:
npm:
patterns:
- "*"
- package-ecosystem: "github-actions"
target-branch: main
directory: ".github/workflows"
schedule:
interval: "weekly"
groups:
gha:
patterns:
- "*"
24 changes: 24 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Node.js CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: volta-cli/action@v4
- run: node -v
- run: npm -v
- run: npm ci
- run: npm run lint
- run: npm t
8 changes: 7 additions & 1 deletion vitest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@ export default defineConfig({
// '.eslintrc.cjs',
// '**/app/'
],
reportsDirectory: './tests/unit/coverage'
reportsDirectory: './tests/unit/coverage',
thresholds: {
lines: 100,
functions: 100,
branches: 100,
statements: 100
}
},
environment: 'happy-dom',
globals: true,
Expand Down

0 comments on commit dbfcaf2

Please sign in to comment.