-
Notifications
You must be signed in to change notification settings - Fork 30
feat(database): add integration testing #896
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
Merged
Merged
Changes from all commits
Commits
Show all changes
98 commits
Select commit
Hold shift + click to select a range
74626c9
Merge branch 'main' of github.com:go-vela/server
jbrockopp 974c8e6
Merge branch 'main' of github.com:go-vela/server
jbrockopp 2f2c425
Merge branch 'main' of github.com:go-vela/server
jbrockopp 528291a
Merge branch 'main' of github.com:go-vela/server
jbrockopp b53c687
Merge branch 'main' of github.com:go-vela/server
jbrockopp 4734dcb
Merge branch 'main' of github.com:go-vela/server
jbrockopp 1fb52df
Merge branch 'main' of github.com:go-vela/server
jbrockopp e996aa6
Merge branch 'main' of github.com:go-vela/server
jbrockopp c299ee4
Merge branch 'main' of github.com:go-vela/server
jbrockopp c8da9e3
Merge branch 'main' of github.com:go-vela/server
jbrockopp 1ee254f
Merge branch 'main' of github.com:go-vela/server
jbrockopp 8dd6033
Merge branch 'main' of github.com:go-vela/server
jbrockopp 0eb92b1
Merge branch 'main' of github.com:go-vela/server
jbrockopp d5dcb6d
Merge branch 'main' of github.com:go-vela/server
jbrockopp be8dd9a
Merge branch 'main' of github.com:go-vela/server
jbrockopp 73893b5
Merge branch 'main' of github.com:go-vela/server
jbrockopp 355017b
Merge branch 'main' of github.com:go-vela/server
jbrockopp 3e17278
Merge branch 'main' of github.com:go-vela/server
jbrockopp d3c1e06
Merge branch 'main' of github.com:go-vela/server
jbrockopp d63abfe
Merge branch 'main' of github.com:go-vela/server
jbrockopp a353552
Merge branch 'main' of github.com:go-vela/server
jbrockopp f1a8ab6
Merge branch 'main' of github.com:go-vela/server
jbrockopp c23c599
Merge branch 'main' of github.com:go-vela/server
jbrockopp 683248d
feat(database): add integration testing
jbrockopp e2f9307
feat(actions): add integration-test workflow
jbrockopp b910bfc
feat(database): add integration tests
jbrockopp 09fd217
fix: use env var to skip integration tests
jbrockopp 643f27a
fix: password for integration tests
jbrockopp ffca1a2
test: comment out paths for prs
jbrockopp 4f57c94
revert: comment out paths for prs
jbrockopp 7bfb032
enhance(database): add worker integration tests
jbrockopp aa52426
fix(database): timestamps for worker tests
jbrockopp 23a9c59
chore: save work
jbrockopp 1dcb17b
enhance(database): add method counter
jbrockopp 77eb03e
fix(database): subtract 2 from methods
jbrockopp ad25372
enhance(database): add user integration tests
jbrockopp b218eea
chore: address review feedback
jbrockopp d99f960
fix(database): names for users
jbrockopp 4a0601a
enhance(database): add step integration tests
jbrockopp 541d2e3
fix: typo
jbrockopp 43cc062
test: output diff
jbrockopp cd8f56e
chore: minor fixes
jbrockopp 111916c
fix(database): users
jbrockopp a6d0dcc
fix(database): steps
jbrockopp c1f92cc
fix: typo
jbrockopp 3a4ef4d
fix(database): steps
jbrockopp 6384b5e
feat(database): add services
jbrockopp c34dcb3
feat(database): add builds
jbrockopp d6912ca
fix(database): users
jbrockopp 18a68fe
fix(database): integration tests
jbrockopp 63d6b19
feat(database): add hooks
jbrockopp eddc018
feat(database): add logs
jbrockopp 39ed3ff
feat(database): add pipelines
jbrockopp d40a96d
feat(database): add repos
jbrockopp 29881ac
feat(database): add schedules
jbrockopp 263b1df
feat(database): add secrets
jbrockopp ada878b
Merge branch 'main' into hackathon/integration
jbrockopp 69cf142
Merge branch 'hackathon/integration' of github.com:go-vela/server int…
jbrockopp d1a6232
fix(database): integration tests
jbrockopp f50a30d
fix(database): integration tests
jbrockopp e9766d4
fix(database: fix logs
jbrockopp 0603090
fix(database: fix pipelines
jbrockopp 32b076d
fix(database): repos
jbrockopp 8735c04
fix(database): integration tests
jbrockopp 94f66eb
fix(database): integration tests
jbrockopp dd27785
fix(database): minus one
jbrockopp e0e82b1
chore: cleanup
jbrockopp b4f16a2
chore: misc fixes
jbrockopp 3f841bc
fix(database): user integration test
jbrockopp a02f2fd
fix(database): build integration tests
jbrockopp b432a66
fix(database): build integration tests
jbrockopp db6e2f0
fix(database): integration tests
jbrockopp ac0d699
fix(database): secrets integration tests
jbrockopp ad9c574
fix(database): integration tests
jbrockopp 5a56952
fix(database): integration tests
jbrockopp f42085f
fix(database): secrets integration tests
jbrockopp ea00645
test: troubleshoot build failures
jbrockopp aaea5aa
fix(database): integration tests
jbrockopp 88e0d5c
fix(database): integration tests
jbrockopp e168b62
fix(database): integration tests
jbrockopp c226c03
feat(database): add sqlite integration tests
jbrockopp 78c8ac4
fix(database): sqlite integration tests
jbrockopp 2f3f7fe
Merge branch 'main' into hackathon/integration
jbrockopp 836279c
Merge branch 'main' into hackathon/integration
jbrockopp 9a644d8
Merge branch 'hackathon/integration' of github.com:go-vela/server int…
jbrockopp 95ed34b
fix(database/hook): unique constraints for CreateSqliteTable
jbrockopp 387eed0
fix(database/logs): consistency between drivers
jbrockopp 33b20e7
Merge branch 'main' into hackathon/integration
jbrockopp f6a16de
Merge branch 'main' into hackathon/integration
jbrockopp 8581d6d
Merge branch 'hackathon/integration' of github.com:go-vela/server int…
jbrockopp ea17b66
fix: issues from merge
jbrockopp 3ed7f45
chore: add missing comment
jbrockopp 95b534d
Merge branch 'main' into hackathon/integration
jbrockopp 8e3a77d
Merge branch 'main' into hackathon/integration
jbrockopp 09fa268
Merge branch 'hackathon/integration' of github.com:go-vela/server int…
jbrockopp 221cb08
chore: address review feedback
jbrockopp 6b67568
chore: remove unneeded file
jbrockopp 061ff80
chore: undo comments
jbrockopp 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 hidden or 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,49 @@ | ||
| # name of the action | ||
| name: integration-test | ||
|
|
||
| # trigger on pull_request events that modify this file or any database files | ||
| on: | ||
| pull_request: | ||
| paths: | ||
| - '.github/workflows/integration-test.yml' | ||
| - 'database/**' | ||
|
|
||
| # pipeline to execute | ||
| jobs: | ||
| database: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| services: | ||
| postgres: | ||
| image: postgres:15-alpine | ||
| env: | ||
| POSTGRES_DB: vela | ||
| POSTGRES_PASSWORD: notARealPassword12345 | ||
| POSTGRES_USER: vela | ||
| options: >- | ||
| --health-cmd pg_isready | ||
| --health-interval 10s | ||
| --health-timeout 5s | ||
| --health-retries 5 | ||
| ports: | ||
| - 5432:5432 | ||
|
|
||
| env: | ||
| POSTGRES_ADDR: postgres://vela:notARealPassword12345@localhost:5432/vela | ||
| SQLITE_ADDR: vela.db | ||
|
|
||
| steps: | ||
| - name: clone | ||
| uses: actions/checkout@v3 | ||
|
|
||
| - name: install go | ||
| uses: actions/setup-go@v4 | ||
| with: | ||
| # use version from go.mod file | ||
| go-version-file: 'go.mod' | ||
| cache: true | ||
| check-latest: true | ||
|
|
||
| - name: test | ||
| run: | | ||
| make integration-test |
This file contains hidden or 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 hidden or 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 hidden or 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
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.
Uh oh!
There was an error while loading. Please reload this page.