diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..da945b6 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* isaacs diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..86afb5a --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,48 @@ +name: Node CI + +on: [push, pull_request] + +jobs: + build: + strategy: + fail-fast: false + matrix: + node-version: [8.x, 10.x, 12.x, 14.x] + platform: + - os: ubuntu-latest + shell: bash + - os: macos-latest + shell: bash + - os: windows-latest + shell: bash + - os: windows-latest + shell: powershell + + runs-on: ${{ matrix.platform.os }} + defaults: + run: + shell: ${{ matrix.platform.shell }} + + steps: + # Checkout the npm/cli repo + - uses: actions/checkout@v2 + + # Installs the specific version of Node.js + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + + # Run the installer script + - name: Install dependencies + run: npm install + + # Run the tests + - name: Run Tap tests + if: matrix.node-version != '8.x' + run: npm test + + # Run the tests + - name: Run Tap tests + if: matrix.node-version == '8.x' + run: npm test -- --no-coverage diff --git a/.gitignore b/.gitignore index daf2291..9999d7b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,7 @@ # ignore most things, include some others /* /.* - +!.github !bin/ !lib/ !docs/