diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..94f480d --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto eol=lf \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..74685dd --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ +name: CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: "${{matrix.os}}-latest" + + strategy: + matrix: + node-version: [10.x, 12.x, 14.x, 15.x] + os: ['ubuntu', 'windows'] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + - run: yarn install + - run: yarn test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 3db58d8..0000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -sudo: false -dist: trusty - -language: node_js -node_js: - - "10" - - "12" - -cache: - yarn: true - -matrix: - fast_finish: true diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 2b8f20b..0000000 --- a/appveyor.yml +++ /dev/null @@ -1,30 +0,0 @@ -# https://www.appveyor.com/docs/appveyor-yml/ - -# Test against these versions of Node.js. -environment: - MOCHA_REPORTER: "mocha-appveyor-reporter" - matrix: - - nodejs_version: "10" - - nodejs_version: "12" - -# Install scripts. (runs after repo cloning) -install: - - ps: Install-Product node $env:nodejs_version - - appveyor-retry npm i -g npm@^4 - - appveyor-retry yarn - - appveyor-retry yarn add mocha-appveyor-reporter # must be installed locally. - -cache: - - '%LOCALAPPDATA%\Yarn' - -# Post-install test scripts. -test_script: - # Output useful info for debugging. - - git rev-parse HEAD - - cmd: yarn run test - -# Don't actually build. -build: off - -# Set build version format here instead of in the admin panel. -version: "{build}"