Skip to content

Commit

Permalink
add GitHub Actions CI and CODEOWNERS file
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Sep 10, 2020
1 parent 5d56e26 commit 5574282
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* isaacs
48 changes: 48 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# ignore most things, include some others
/*
/.*

!.github
!bin/
!lib/
!docs/
Expand Down

0 comments on commit 5574282

Please sign in to comment.