Skip to content

Commit

Permalink
Merge pull request #641 from Shreyas-vgr/2.0.x
Browse files Browse the repository at this point in the history
feat: Adding individual workflows to be triggered on subdir changes
  • Loading branch information
Shreyas-vgr committed Aug 13, 2020
2 parents cbc2634 + 4f562fe commit 43975cd
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 15 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ask-sdk-controls-unit-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Unit Tests on ask-sdk-controls

on:
push:
branches:
- 2.0.x
paths:
- 'ask-sdk-controls/**'
pull_request:
branches:
- 2.0.x
paths:
- 'ask-sdk-controls/**'

defaults:
run:
working-directory: ask-sdk-controls

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node: [10, 12]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- run: npm install
- run: npm run lint
- run: npm run test
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
name: Unit Test
name: Unit Tests on ask-sdk-core

on:
push:
branches:
- 2.0.x
- 2.0.x
paths:
- 'ask-sdk-core/**'
pull_request:
branches:
- 2.0.x
- 2.0.x
paths:
- 'ask-sdk-core/**'

defaults:
run:
working-directory: ask-sdk-core

jobs:
build:
Expand All @@ -21,15 +29,6 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}

- run: |
npm install
npm run lint
npm run test
working-directory: ask-sdk-core
- run: |
npm install
npm run lint
npm run test
working-directory: ask-sdk-controls
- run: npm install
- run: npm run build
- run: npm run test

0 comments on commit 43975cd

Please sign in to comment.