diff --git a/.github/workflows/perf.yml b/.github/workflows/perf.yml new file mode 100644 index 0000000..eb51379 --- /dev/null +++ b/.github/workflows/perf.yml @@ -0,0 +1,32 @@ +name: Run performance tests + +on: + push: + branches: + - main + pull_request: + branches: + - main + +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..d8d4b1b --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,29 @@ +name: Run npm test + +on: + push: + branches: + - main + pull_request: + branches: + - main + +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/.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