Skip to content

Commit

Permalink
Merge pull request #42 from neodmy/chore/add-test-workflow
Browse files Browse the repository at this point in the history
Chore/add test workflow
  • Loading branch information
neodmy authored Apr 6, 2022
2 parents 7f47683 + 5d7849b commit d20a137
Show file tree
Hide file tree
Showing 6 changed files with 5,639 additions and 7,261 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Run tests

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

jobs:
run-test:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Check-out the repository
uses: actions/checkout@v2
- name: Setup node version 16.13.0 (LTS)
uses: actions/setup-node@v2
with:
node-version: '16.13.0'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm run lint
- run: npm run test

4 changes: 4 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run test
Loading

0 comments on commit d20a137

Please sign in to comment.