-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adding tests to github actions #46
Closed
Closed
Changes from all commits
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
07b709b
adding tests to github actions
muskansethi1 27687a5
update file
muskansethi1 8efc2b7
test
muskansethi1 574ee21
correction
muskansethi1 a4a3e1c
check for dir
muskansethi1 2074152
checking directory
muskansethi1 f20a648
updated tests config
muskansethi1 7fece9e
copy file
muskansethi1 cfa2aaa
updated test files and scripts
muskansethi1 f990ca4
minor changes
muskansethi1 5e27bab
temp test
muskansethi1 ffd0abe
updating scripts
muskansethi1 3739636
testing in github actions
muskansethi1 1b0658e
updating path
muskansethi1 30f582b
update installation
muskansethi1 023c148
updated test app
muskansethi1 9979d7d
updated tests
muskansethi1 8aca59a
Merge branch 'main' into github-actions
muskansethi1 44c9d18
enabling tests in github actions
muskansethi1 c10cbd6
update yml file
muskansethi1 5922ac4
update file
muskansethi1 50123c1
update file
muskansethi1 f8bae10
temp config
muskansethi1 b19acbe
test
muskansethi1 deb8256
test
muskansethi1 aa336d0
correct work folder
muskansethi1 3b86635
test
muskansethi1 b7b4ce2
test
muskansethi1 7354cf0
update for project path
muskansethi1 7cf0bf9
replicating calesi setup
muskansethi1 ce3aef1
Merge branch 'main' into github-actions
muskansethi1 71de9ac
updated test.yml
muskansethi1 2326287
updated work folder
muskansethi1 ffebcaf
temp
muskansethi1 961993b
test
muskansethi1 9e5fdcb
test
muskansethi1 b2e65e1
test
muskansethi1 4a34a56
replicating calesi setup
muskansethi1 83ec63a
recursive copy
muskansethi1 c5310ae
updating attachments location
muskansethi1 74b4c62
Merge branch 'main' into github-actions
muskansethi1 d0ed547
bug fixes
muskansethi1 a3b4028
add sqlite for actions
muskansethi1 07b4b99
update
muskansethi1 d569c68
update
muskansethi1 2f1d6d5
Merge branch 'main' into github-actions
muskansethi1 3b7f557
Merge branch 'main' into github-actions
muskansethi1 d5a0499
Merge branch 'main' into github-actions
muskansethi1 01fe08c
Merge branch 'main' into github-actions
muskansethi1 386924f
temp
muskansethi1 5b66654
update
muskansethi1 211ff92
update
muskansethi1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,39 @@ | ||
name: Tests | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
types: [opened, synchronize, reopened, auto_merge_enabled] | ||
|
||
# Allow parallel jobs on `main`, so that each commit is tested. For PRs, run only the latest commit. | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
name: Node.js ${{ matrix.node }} | ||
|
||
strategy: | ||
fail-fast: true | ||
matrix: | ||
node: [20, 18] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
|
||
- run: npm i | ||
#replicating calesi folder structure | ||
- run: cd .. && mkdir calesi | ||
- run: cd ../calesi && mkdir plugins && cd plugins && mkdir attachments | ||
- run: cp -r ./* ../calesi/plugins/attachments | ||
- run: cd ../calesi && git clone https://github.com/cap-js/incidents-app.git && cd incidents-app && npm install --save ../plugins/attachments/ && cp -r xmpls/attachments.cds ./db && npm i | ||
- run: cd ../calesi/plugins/attachments && npm run test | ||
env: | ||
FORCE_COLOR: true | ||
- run: rm calesi |
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
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
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,6 @@ | ||
using { sap.capire.incidents as my } from './schema'; | ||
using { Attachments } from '@cap-js/attachments'; | ||
|
||
extend my.Incidents with { | ||
attachments: Composition of many Attachments; | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this necessary? shouldn't it just be
npm i && npm t
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am cloning incidents-app here, hence replicated the calesi setup so that the tests can run both here and in local in the same setup