From 0531c3a8e145d555bd934b9a9636949916432d93 Mon Sep 17 00:00:00 2001 From: Omer Faruk APLAK <omeraplak@gmail.com> Date: Wed, 7 Oct 2020 16:44:00 +0300 Subject: [PATCH] add push workflow and delete travis --- .github/workflows/push.yml | 33 +++++++++++++++++++++++++++++++++ .travis.yml | 14 -------------- 2 files changed, 33 insertions(+), 14 deletions(-) create mode 100644 .github/workflows/push.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml new file mode 100644 index 0000000..5e4d7d1 --- /dev/null +++ b/.github/workflows/push.yml @@ -0,0 +1,33 @@ +name: Build & Test on Push + +on: push + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [12.x] + + steps: + - uses: actions/checkout@v1 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: npm install & build + run: | + npm install + npm build + env: + CI: true + NODE_ENV: development + - name: Test & publish code coverage + uses: paambaati/codeclimate-action@v2.6.0 + env: + CC_TEST_REPORTER_ID: ${{ secrets.TEST_REPORTER_ID }} + with: + coverageCommand: npm run test + debug: true diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 51bf000..0000000 --- a/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -language: node_js -node_js: - - "node" -before_script: - - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter - - chmod +x ./cc-test-reporter - - ./cc-test-reporter before-build -after_success: - - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT -cache: - directories: - - ~/.npm -notifications: - email: true