Skip to content

Commit

Permalink
chore: add gh actions (#54)
Browse files Browse the repository at this point in the history
* chore: add gh actions
* chore: adjust npmignore file
  • Loading branch information
bukowskiadam authored Jan 12, 2024
1 parent adcf0b9 commit 8c03ec3
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 16 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/perf.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Run performance tests

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: "npm"

- name: Install dependencies
run: npm install

- name: Test base performance
run: npm run perf /noop

- name: Test nodesi performance
run: npm run perf /test
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Run npm test

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: "npm"

- name: Install dependencies
run: npm install

- name: Run tests
run: npm run coverage
4 changes: 3 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ npm-debug.log
siege.log
.nyc_output
perf
perf.js
test
.jshintrc
.travis.yml
.nvmrc
.editorconfig
.github
*.tgz
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

0 comments on commit 8c03ec3

Please sign in to comment.