-
Notifications
You must be signed in to change notification settings - Fork 1
feat: refactor with tests #4
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
24 commits
Select commit
Hold shift + click to select a range
35be1e5
fix: refactor the checks to read and test easier
jrschumacher 9e97412
Add tests
jrschumacher b2a583f
feat: refactor checks add tests
jrschumacher 0e9942f
Add further tests
jrschumacher 7977338
camel case
jrschumacher 32aa020
resolve lint issue
jrschumacher 3d72dc4
heartbeat must be greater than 0
jrschumacher a93490c
Expose validate and add tests
jrschumacher 0a500ca
Move icsPrefix constant to main_test.go since its only used in tests …
jrschumacher 213d047
Remove backwards compatibility for `-debug` argument
jrschumacher a38f145
add push on master and fix pull_request on master
jrschumacher 89a9095
fix additional lint issues
jrschumacher cbab428
fix check condition and add better tests
jrschumacher 5c7b214
fix structured log
jrschumacher 37e4b98
fix lint issue
jrschumacher 240e72d
add notification service as interface
jrschumacher 5cb5126
Remove deprecated WebHook config
jrschumacher e24851e
unify log pattern
jrschumacher 0329e62
Merge branch 'master' of github.com:Fesaa/iCalMerger into refactor-wi…
jrschumacher 9f79064
Skip failing tests since I need to better understand the underlying f…
jrschumacher a7b3dc6
Update server/main.go
jrschumacher c358b33
conditional message
jrschumacher b30e13f
add healthcheck endpoint and command
jrschumacher 809c79e
add healthcheck docs
jrschumacher 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,27 @@ | ||
| name: Validate | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
| pull_request: | ||
| branches: | ||
| - master | ||
|
|
||
| jobs: | ||
| job: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup Go | ||
| uses: actions/setup-go@v5 | ||
| with: | ||
| go-version: 1.21 | ||
|
|
||
| - name: 🧹 Lint | ||
| uses: golangci/golangci-lint-action@v6 | ||
Fesaa marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| - name: 🧪 Test | ||
| run: go test -v ./... | ||
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.
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.