-
Notifications
You must be signed in to change notification settings - Fork 1
feat: add NGSI-LD scope/scopeQ support #110
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
6 commits
Select commit
Hold shift + click to select a range
ead2308
feat: add NGSI-LD scope/scopeQ support (#109)
miya0001 37ef28b
fix: update e2e hooks for geonicdb v0.2.1 API changes
miya0001 96d23e5
fix: address review comments — CHANGELOG PR number and object array h…
miya0001 cabc937
chore: pin geonicdb to commit hash and add weekly compatibility check
miya0001 c135acd
fix: add permissions block and fix heredoc variable expansion in comp…
miya0001 bd07caa
docs: update CHANGELOG with CI and dependency pinning entries
miya0001 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,81 @@ | ||
| name: GeonicDB compatibility check | ||
|
|
||
| on: | ||
| schedule: | ||
| - cron: "0 9 * * 1" # 毎週月曜 09:00 UTC | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
| issues: write | ||
|
|
||
| jobs: | ||
| check: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/create-github-app-token@v1 | ||
| id: app-token | ||
| with: | ||
| app-id: ${{ secrets.GH_APP_ID }} | ||
| private-key: ${{ secrets.GH_APP_PRIVATE_KEY }} | ||
| owner: geolonia | ||
| repositories: geonicdb | ||
|
|
||
| - uses: actions/checkout@v4 | ||
| with: | ||
| persist-credentials: false | ||
|
|
||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 20 | ||
|
|
||
| - name: Configure git for private repos | ||
| run: | | ||
| git config --global url."https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/".insteadOf "https://github.com/" | ||
| git config --global --add url."https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/".insteadOf "ssh://git@github.com/" | ||
| git config --global --add url."https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/".insteadOf "git@github.com:" | ||
|
|
||
| - name: Update geonicdb to latest | ||
| run: | | ||
| node -e " | ||
| const p = require('./package.json'); | ||
| p.devDependencies.geonicdb = 'github:geolonia/geonicdb'; | ||
| require('fs').writeFileSync('package.json', JSON.stringify(p, null, 2) + '\n'); | ||
| " | ||
| npm install | ||
|
|
||
| - name: Show updated version | ||
| run: npm ls geonicdb | ||
|
|
||
| - run: npm run lint | ||
| - run: npm run typecheck | ||
| - run: npm test | ||
| - run: npm run test:e2e | ||
|
|
||
| - name: Create issue on failure | ||
| if: failure() | ||
| env: | ||
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| run: | | ||
| GEONICDB_VERSION=$(npm ls geonicdb --json 2>/dev/null | node -e " | ||
| const d = JSON.parse(require('fs').readFileSync('/dev/stdin','utf8')); | ||
| const dep = d.dependencies?.geonicdb; | ||
| console.log(dep?.version ?? 'unknown'); | ||
| ") | ||
| gh issue create \ | ||
| --title "geonicdb 最新版 (${GEONICDB_VERSION}) との互換性エラー" \ | ||
| --body "$(cat <<EOF | ||
| ## 概要 | ||
|
|
||
| 週次の互換性チェックで、geonicdb の最新版でテストが失敗しました。 | ||
|
|
||
| - **geonicdb version**: ${GEONICDB_VERSION} | ||
| - **Workflow run**: ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID} | ||
|
|
||
| ## 対応 | ||
|
|
||
| 1. Workflow run のログを確認し、破壊的変更の内容を特定 | ||
| 2. CLI 側のコードを修正 | ||
| 3. `package.json` の geonicdb コミットハッシュを最新に更新 | ||
| EOF | ||
| )" | ||
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.