Skip to content

Commit

Permalink
Add ci github actions (#1201)
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima authored Mar 20, 2020
1 parent 228c084 commit 526377b
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Node.js CI

on: [push, pull_request]

jobs:
build:

runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [10.x, 12.x]

steps:
- uses: actions/checkout@v2
- name: OS ${{ matrix.os }} ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm test
44 changes: 44 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Integration Build

on: [push, pull_request]

jobs:
build:

runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest]
node-version: [12.x]

steps:
- name: Checkout yeoman-environment
uses: actions/checkout@v2
with:
repository: yeoman/environment
path: yeoman-environment
- name: Checkout yeoman-test
uses: actions/checkout@v2
with:
repository: yeoman/yeoman-test
path: yeoman-test
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Run yeoman-environment test
run: |
cd $GITHUB_WORKSPACE/yeoman-environment
npm ci
npm install ${{ github.repository }}#$GITHUB_SHA
npm install yeoman/yeoman-test#master
npm test
- name: Run yeoman-test test
run: |
cd $GITHUB_WORKSPACE/yeoman-test
npm ci
npm install ${{ github.repository }}#$GITHUB_SHA
npm install yeoman/environment#master
npm test

0 comments on commit 526377b

Please sign in to comment.