diff --git a/.github/.workflows/release.yml b/.github/.workflows/release.yml new file mode 100644 index 0000000..7035a56 --- /dev/null +++ b/.github/.workflows/release.yml @@ -0,0 +1,38 @@ +name: CI + +on: + push: + branches: [master] + +jobs: + test: + runs-on: ubuntu-latest + + strategy: + matrix: + node: [10.x, 12.x] + + steps: + - uses: actions/checkout@2 + + - name: Setup nodejs + uses: actions/setup-node@v2-beta + with: + node-version: ${{ matrix.node }} + - name: Install Deps + run: npm run install + - name: Validate package + run: npm run validate + + release: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@2 + + - name: Setup nodejs + uses: actions/setup-node@v2-beta + with: + node-version: 12.x + - name: Update tests, coverage, and release + run: npm run test:update && npx codecov && npx semantic-release diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 207006b..0000000 --- a/.travis.yml +++ /dev/null @@ -1,18 +0,0 @@ -sudo: false -language: node_js -notifications: - email: false -node_js: - - '10' - - '12' -script: npm run validate -jobs: - include: - - stage: release - node_js: '12' - deploy: - provider: script - script: npm run test:update && npx codecov && npx semantic-release - skip_cleanup: true -branches: - only: master