-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* skip running CI on files * disable http driver for CI workflow, enable it for main workflow * CI: backport condition change
- Loading branch information
1 parent
151be7e
commit 367c692
Showing
11 changed files
with
142 additions
and
34 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,18 @@ | ||
code: | ||
- added|modified: 'go.mod' | ||
- added|modified: '.github/filters.yaml' | ||
- added|modified: '.github/workflows/ci.yaml' | ||
- added|modified: 'build/package/docker/kwild.dockerfile' | ||
- added|modified: 'cmd/**' | ||
- added|modified: 'common/**' | ||
- added|modified: 'core/**/*.go' | ||
- added|modified: 'core/!(*.md)' | ||
- added|modified: 'core/client/!(*.md)' | ||
- added|modified: 'core/client/!(example/**)/**' # this is really weird shit | ||
- added|modified: 'core/gatewayclient/!(*.md)' | ||
- added|modified: 'core/gatewayclient/!(example/**)/**' | ||
- added|modified: 'internal/**' | ||
- added|modified: 'parse/**' | ||
- added|modified: 'scripts/**/*' | ||
- added|modified: 'test/**/*' | ||
- 'test/!(stress/**)/**' |
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 |
---|---|---|
|
@@ -3,12 +3,44 @@ name: CI | |
on: | ||
pull_request: | ||
types: [ opened, synchronize, reopened, ready_for_review ] | ||
branches: | ||
- main | ||
- release* | ||
# path filter won't work bcz PR status check will be 'pending' if workflow is | ||
# skipped due to path filtering, i.e. blocked | ||
#paths: | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
# JOB to run change detection | ||
changes: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: read | ||
# Set job outputs to values from filter step | ||
outputs: | ||
run: ${{ steps.filter.outputs.code }} | ||
steps: | ||
# For pull requests it's not necessary to checkout the code | ||
# but it's useful to see the effect of the path filter in current PR | ||
- uses: actions/checkout@v4 | ||
with: | ||
# This may save additional git fetch roundtrip if | ||
# merge-base is found within latest 20 commits | ||
fetch-depth: 20 | ||
- uses: dorny/[email protected] | ||
id: filter | ||
with: | ||
# Path to file where filters are defined | ||
filters: .github/filters.yaml | ||
#predicate-quantifier: 'every' # check dorny/paths-filter#225 | ||
|
||
test: | ||
needs: changes | ||
# only run only if there are changes and non-draft PRs | ||
if: ${{ needs.changes.outputs.run == 'true' && !github.event.pull_request.draft}} | ||
runs-on: ubuntu-latest | ||
if: ${{ !github.event.pull_request.draft }} # only run on non-draft PRs | ||
|
||
services: | ||
postgres: | ||
|
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 |
---|---|---|
|
@@ -24,7 +24,30 @@ on: | |
required: true | ||
|
||
jobs: | ||
# JOB to run change detection | ||
changes: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: read | ||
# Set job outputs to values from filter step | ||
outputs: | ||
run: ${{ steps.filter.outputs.code }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
# This may save additional git fetch roundtrip if | ||
# merge-base is found within latest 20 commits | ||
fetch-depth: 20 | ||
- uses: dorny/[email protected] | ||
id: filter | ||
with: | ||
filters: .github/filters.yaml | ||
#predicate-quantifier: 'every' | ||
|
||
kgw-test: | ||
needs: changes | ||
# only run only if there are changes, or manually triggered | ||
if: ${{ needs.changes.outputs.run == 'true' || github.event_name == 'workflow_dispatch'}} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Show references | ||
|
@@ -158,6 +181,14 @@ jobs: | |
run: | | ||
docker pull kwilbrennan/extensions-math:multi-arch --platform linux/amd64 | ||
- name: Run integration test on REST API | ||
run: | | ||
testUserID=$(id -u) | ||
testGroupID=$(id -g) | ||
cp test/integration/docker-compose.override.yml.example test/integration/docker-compose.override.yml | ||
sed -i "s/\${UID}:\${GID}/${testUserID}:${testGroupID}/g" test/integration/docker-compose.override.yml | ||
KIT_LOG_LEVEL=warn task test:it:nb -- -drivers http | ||
- name: Run kgw integration test | ||
run: | | ||
testUserID=$(id -u) | ||
|
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
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