name: cdk test

defaults:
  run:
    working-directory: notificationworkerlambda/cdk

on:
  pull_request:
    branches:
      - master
    paths:
      - "notificationworkerlambda/cdk/**"

  push:
    branches:
      - master
    paths:
      - "notificationworkerlambda/cdk/**"

jobs:
  cdk-test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3

      - uses: actions/setup-node@v3
        with:
          node-version-file: ".nvmrc"
          cache: "yarn"
          cache-dependency-path: notificationworkerlambda/cdk/yarn.lock

      - name: Install
        run: yarn install --frozen-lockfile

      - name: Test
        run: yarn test

name: cdk test

defaults:
  run:
    working-directory: notificationworkerlambda/cdk

on:
  pull_request:
    branches:
      - master

  push:
    branches:
      - master

  workflow_dispatch:   

jobs:
  cdk-test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3

      - uses: actions/setup-node@v3
        with:
          node-version-file: ".nvmrc"
          cache: "yarn"
          cache-dependency-path: notificationworkerlambda/cdk/yarn.lock

      - name: Install
        run: yarn install --frozen-lockfile

      - name: Test
        run: yarn test

Remove the path of the cdk test dispatch rules. Allow manual trigger of cdk test workflow.
Remove the path of the cdk test dispatch rules.  Allow manual trigger of cdk test workflow.
