From 5574282ff79bf9ac60eca88952018dff37040f0c Mon Sep 17 00:00:00 2001 From: isaacs Date: Thu, 10 Sep 2020 13:10:04 -0700 Subject: [PATCH] add GitHub Actions CI and CODEOWNERS file --- .github/CODEOWNERS | 1 + .github/workflows/ci.yml | 48 ++++++++++++++++++++++++++++++++++++++++ .gitignore | 2 +- 3 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 .github/CODEOWNERS create mode 100644 .github/workflows/ci.yml 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/