-
Notifications
You must be signed in to change notification settings - Fork 1
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 #110 from widmogrod/feature/january-2024-projection
Kafka streaming, projection state recovery improvements, documentation, code coverage
- Loading branch information
Showing
123 changed files
with
14,619 additions
and
3,088 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 |
---|---|---|
|
@@ -9,7 +9,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: ^1.19 | ||
go-version: ^1.21 | ||
id: go | ||
|
||
- run: cd cmd/mkunion; go get -v -t -d ./... | ||
|
@@ -39,3 +39,12 @@ jobs: | |
echo "Go tests failed after all retries." | ||
exit 1 | ||
fi | ||
- run: | | ||
go test -race -coverprofile=coverage.out -covermode=atomic ./... || true | ||
- name: Upload coverage reports to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
slug: widmogrod/mkunion |
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,29 @@ | ||
name: docs | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
permissions: | ||
contents: write | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Configure Git Credentials | ||
run: | | ||
git config user.name github-actions[bot] | ||
git config user.email 41898282+github-actions[bot]@users.noreply.github.com | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.x | ||
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV | ||
- uses: actions/cache@v4 | ||
with: | ||
key: mkdocs-material-${{ env.cache_id }} | ||
path: .cache | ||
restore-keys: | | ||
mkdocs-material- | ||
- run: pip install mkdocs-material | ||
- run: mkdocs gh-deploy --force |
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,13 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
cwd=$(dirname "$0") | ||
project_root=$(dirname "$cwd") | ||
|
||
if [ "$1" == "run" ]; then | ||
docker run --rm -it -p 8000:8000 -v ${project_root}:/docs squidfunk/mkdocs-material | ||
elif [ "$1" == "build" ]; then | ||
docker run --rm -it -v ${project_root}:/docs squidfunk/mkdocs-material build | ||
else | ||
echo "Usage: $0 [run|build]" | ||
fi |
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,35 @@ | ||
--- | ||
title: Contributing and development | ||
--- | ||
|
||
# Contributing and development | ||
## Development | ||
|
||
Checkout repo and run: | ||
``` | ||
./dev/bootstrap.sh | ||
``` | ||
|
||
This command starts docker container with all necessary tools to develop and test `mkunion` project. | ||
|
||
In separate terminal run: | ||
``` | ||
go generate ./... | ||
go test ./... | ||
``` | ||
|
||
This will generate code and run tests. | ||
|
||
Note: Some tests are flaky (yes I know, I'm working on it), so if you see some test failing, please run it again. | ||
|
||
## Documentation | ||
|
||
To preview documentation run: | ||
``` | ||
./dev/docs.sh run | ||
``` | ||
|
||
## Contributing | ||
|
||
If you want to contribute to `mkunion` project, please open issue first to discuss your idea. | ||
I have opinions about how `mkunion` should work, how I want to evolve it, and I want to make sure that your idea fits into the project. |
Oops, something went wrong.