-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #154 from RiyaRaj28/GHA-automated-testing
GHA automated testing
- Loading branch information
Showing
3 changed files
with
58 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: "test" | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
- dev | ||
|
||
push: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
test-package: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/[email protected] | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v4 | ||
|
||
- name: Install Dependencies for packages/common | ||
run: yarn install --frozen-lockfile | ||
working-directory: packages/common | ||
|
||
- name: Unit tests for packages/common | ||
run: yarn run test | ||
working-directory: packages/common/test/ | ||
|
||
test-sample: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
dir: | ||
- '02-monitoring' | ||
- '03-response-formatting' | ||
- '04-logging' | ||
- '05-temporal-package' | ||
- '06-file-upload' | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v4 | ||
|
||
- name: Install Dependencies for ${{ matrix.dir }} | ||
run: yarn install | ||
working-directory: sample/${{ matrix.dir }} | ||
|
||
- name: Run Unit Tests | ||
run: yarn run test | ||
working-directory: sample/${{ matrix.dir }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters