diff --git a/.github/workflows/ci-legacy.yml b/.github/workflows/ci-legacy.yml new file mode 100644 index 0000000..4bb08f5 --- /dev/null +++ b/.github/workflows/ci-legacy.yml @@ -0,0 +1,30 @@ +name: LEGACY + +on: push + +jobs: + test: + name: Test on Node ${{ matrix.node }} and ${{ matrix.os }} + + runs-on: ${{ matrix.os }} + strategy: + matrix: + node: ["0.8", "0.10", "0.12", "4", "6", "8"] + os: [ubuntu-16.04] + + steps: + - uses: actions/checkout@v2 + + - name: Setup node ${{ matrix.node }} + uses: dcodeIO/setup-node-nvm@master + with: + node-version: ${{ matrix.node }} + + - name: Disabling Strict SSL + run: npm conf set strict-ssl false + + - name: Installing Dependencies + run: npm install + + - name: Running Tests + run: npm test diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..9e0693e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,27 @@ +name: CI + +on: push + +jobs: + test: + name: Test on Node ${{ matrix.node }} and ${{ matrix.os }} + + runs-on: ${{ matrix.os }} + strategy: + matrix: + node: ["10.x", "12.x", "14.x"] + os: [ubuntu-latest, windows-latest, macOS-latest] + + steps: + - uses: actions/checkout@v2 + + - name: Setup node + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node }} + + - name: Installing Dependencies + run: npm install + + - name: Running Tests + run: npm test diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..defa540 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,31 @@ +name: RELEASE + +on: + push: + tags: + - v[0-9]+.[0-9]+.[0-9]+ + +jobs: + test: + name: Release + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Setup node + uses: actions/setup-node@v2 + with: + node-version: 14.x + registry-url: https://registry.npmjs.org + + - name: Installing Dependencies + run: npm install + + - name: Running Tests + run: npm test + + - name: Publishing to NPM + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} + run: npm publish diff --git a/.npmignore b/.npmignore index 8dc21da..9f9f4f6 100644 --- a/.npmignore +++ b/.npmignore @@ -1,3 +1,2 @@ -.travis.yml -History.md test +.github diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 895dbd3..0000000 --- a/.travis.yml +++ /dev/null @@ -1,4 +0,0 @@ -language: node_js -node_js: - - 0.6 - - 0.8 diff --git a/package.json b/package.json index 4417339..ffcd7e3 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,6 @@ }, "devDependencies": { "test": "~0.x.0", - "phantomify": "~0.x.0", "retape": "~0.x.0", "tape": "~0.1.5" }, @@ -24,40 +23,9 @@ "node": ">=0.4.x" }, "scripts": { - "test": "npm run test-node && npm run test-browser && npm run test-tap", - "test-browser": "node ./node_modules/phantomify/bin/cmd.js ./test/common-index.js", + "test": "npm run test-node && npm run test-tap", "test-node": "node ./test/common-index.js", "test-tap": "node ./test/tap-index.js" }, - "testling": { - "files": "test/tap-index.js", - "browsers": { - "iexplore": [ - 9, - 10 - ], - "chrome": [ - 16, - 20, - 25, - "canary" - ], - "firefox": [ - 10, - 15, - 16, - 17, - 18, - "nightly" - ], - "safari": [ - 5, - 6 - ], - "opera": [ - 12 - ] - } - }, "license": "MIT" }