diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..cc50145 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,33 @@ +name: Test CI + +on: + pull_request: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [8.x, 10.x, 12.x, 13.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 + run: npm ci + env: + CI: true + - name: npm test + run: npm run test + - name: coverage + uses: codecov/codecov-action@v1.0.5 + if: matrix.node-version == '13.x' + with: + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/circle.yml b/circle.yml deleted file mode 100644 index ecb4e15..0000000 --- a/circle.yml +++ /dev/null @@ -1,15 +0,0 @@ -general: - branches: - ignore: - - gh-pages -dependencies: - pre: - - case $CIRCLE_NODE_INDEX in 0) NODE_VERSION=4 ;; 1) NODE_VERSION=5 ;; 2) NODE_VERSION=stable ;; esac; nvm install $NODE_VERSION && nvm alias default $NODE_VERSION -test: - override: - - npm t -deployment: - coverage: - branch: /.*/ - commands: - - bash <(curl -s https://codecov.io/bash) -f coverage/lcov.info