diff --git a/.github/workflows/perf.yml b/.github/workflows/perf.yml new file mode 100644 index 0000000..1b483e5 --- /dev/null +++ b/.github/workflows/perf.yml @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..41b5f85 --- /dev/null +++ b/.github/workflows/test.yml @@ -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 diff --git a/.npmignore b/.npmignore index 232d59b..229b673 100644 --- a/.npmignore +++ b/.npmignore @@ -6,8 +6,10 @@ npm-debug.log siege.log .nyc_output perf +perf.js test .jshintrc -.travis.yml .nvmrc .editorconfig +.github +*.tgz diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index a4f27e2..0000000 --- a/.travis.yml +++ /dev/null @@ -1,15 +0,0 @@ -language: node_js -node_js: - - "18" - -deploy: - provider: npm - email: kwasniewski.mateusz@gmail.com - api_key: - secure: Hrq6Te/CCiHIbnS3OoMdY5yCz22BBT/Rxyg+y3uKSIl4gNZen89SieBjZHV6P3zqitUI9Bof5pWCtIa+2W7WuR3H+Rac214M4CehvgAoo1VD1oms5lZ1Vqq/xotuf4QFg41d8Yo/Hn2aS+JHbpcdzgwEpeEKYqSswVIbnkdkGF0= - on: - tags: true - repo: Schibsted-Tech-Polska/nodesi - -after_success: - - npm run coverage