Skip to content

Commit

Permalink
Adjusted the triggers paths in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
oskardudycz committed Mar 16, 2024
1 parent 31273a4 commit 8cbc34f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,20 @@ on:
branches: [main]
paths:
- "src/**"
- "!src/docs/**"
- "!src/.vscode/**"
- "./.github/workflows/build_and_test.yml"

# run it during pull request
pull_request:
paths:
- "src/**"
- "!src/docs/**"
- "!src/.vscode/**"
- "./.github/workflows/build_and_test.yml"

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

defaults:
run:
working-directory: ./src
working-directory: src

jobs:
build-and-test-code:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@ on:
push:
branches: [main]
paths:
- "samples/webApi/expressjs-with-esdb"
- "!src/.vscode/**"
- "samples/webApi/expressjs-with-esdb/**"
- "./.github/workflows/build_and_test_sample_webapi-expressjs-with-esdb.yml"

# run it during pull request
pull_request:
paths:
- "samples/webApi/expressjs-with-esdb"
- "!src/.vscode/**"
- "samples/webApi/expressjs-with-esdb/**"
- "./.github/workflows/build_and_test_sample_webapi-expressjs-with-esdb.yml"

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

defaults:
run:
working-directory: ./src/samples/webApi/expressjs-with-esdb
working-directory: samples/webApi/expressjs-with-esdb

jobs:
build-and-test-code:
Expand All @@ -34,9 +34,9 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version-file: ./src/samples/webApi/expressjs-with-esdb/.nvmrc
node-version-file: ./samples/webApi/expressjs-with-esdb/.nvmrc
cache: "npm"
cache-dependency-path: "./src/samples/webApi/expressjs-with-esdb/package-lock.json"
cache-dependency-path: "./samples/webApi/expressjs-with-esdb/package-lock.json"

- name: Install dependencies
run: npm ci
Expand Down
2 changes: 1 addition & 1 deletion samples/webApi/expressjs-with-esdb/.nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20.11.1
v20.11.1

0 comments on commit 8cbc34f

Please sign in to comment.