Loading .github/workflows/build.yaml +22 −9 Original line number Diff line number Diff line Loading @@ -25,32 +25,36 @@ jobs: with: bun-version: latest - run: deno task cache working-directory: ${{ github.workspace }}/src/ - run: deno task test --coverage=.cov --junit-path=.test-report.xml env: RUST_BACKTRACE: ${{ runner.debug }} working-directory: ${{ github.workspace }}/src/ - uses: EnricoMi/publish-unit-test-result-action@v2 if: runner.os == 'Linux' && always() with: check_name: "Test Results (Linux)" files: .test-report.xml files: src/.test-report.xml - uses: EnricoMi/publish-unit-test-result-action/macos@v2 if: runner.os == 'macOS' && always() with: check_name: "Test Results (macOS)" files: .test-report.xml files: src/.test-report.xml - uses: EnricoMi/publish-unit-test-result-action/windows@v2 if: runner.os == 'Windows' && always() with: check_name: "Test Results (Windows)" files: .test-report.xml files: src/.test-report.xml - run: deno coverage --lcov .cov > .cov.lcov working-directory: ${{ github.workspace }}/src/ - uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} file: .cov.lcov file: src/.cov.lcov - run: deno task dnt working-directory: ${{ github.workspace }}/src/ - run: bun test_runner.js working-directory: ${{ github.workspace }}/npm/ working-directory: ${{ github.workspace }}/src/npm/ lint: runs-on: ubuntu-latest Loading @@ -60,6 +64,7 @@ jobs: with: deno-version: v1.x - run: deno task hooks:pre-commit working-directory: ${{ github.workspace }}/src/ - run: deno task check working-directory: ${{ github.workspace }}/examples/blog/ Loading @@ -77,9 +82,11 @@ jobs: with: node-version: lts/* - run: deno task publish --dry-run working-directory: ${{ github.workspace }}/src/ - run: deno task dnt working-directory: ${{ github.workspace }}/src/ - run: npm publish --dry-run working-directory: ${{ github.workspace }}/npm/ working-directory: ${{ github.workspace }}/src/npm/ - run: deno task publish-dry-run working-directory: ${{ github.workspace }}/cli/ Loading @@ -106,17 +113,21 @@ jobs: '.version = .version + "-dev." + $build + "+" + $commit' \ deno.json > deno.json.tmp mv deno.json.tmp deno.json working-directory: ${{ github.workspace }}/src/ - if: github.ref_type == 'tag' run: | set -ex [[ "$(jq -r .version deno.json)" = "$GITHUB_REF_NAME" ]] ! grep -i "to be released" CHANGES.md working-directory: ${{ github.workspace }}/src/ # Don't know why, but the .gitignore list is not overriden by include list # in deno.json: - run: rm vocab/.gitignore working-directory: ${{ github.workspace }}/src/ - run: 'deno task dnt "$(jq -r .version deno.json)"' working-directory: ${{ github.workspace }}/src/ - run: npm pack working-directory: ${{ github.workspace }}/npm/ working-directory: ${{ github.workspace }}/src/npm/ - run: deno task pack working-directory: ${{ github.workspace }}/cli/ - id: extract-changelog Loading @@ -136,7 +147,7 @@ jobs: body_path: ${{ steps.extract-changelog.outputs.output-file }} name: Fedify ${{ github.ref_name }} files: | npm/*.tgz src/npm/*.tgz cli/fedify-cli-* generate_release_notes: false discussion_category_name: Announcements Loading @@ -144,6 +155,7 @@ jobs: github.event_name == 'push' && github.ref_type == 'tag' || github.ref == 'refs/heads/main' run: deno task publish --allow-dirty working-directory: ${{ github.workspace }}/src/ - if: | github.event_name == 'push' && github.ref_type == 'tag' || github.ref == 'refs/heads/main' Loading @@ -162,7 +174,7 @@ jobs: fi env: NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} working-directory: ${{ github.workspace }}/npm/ working-directory: ${{ github.workspace }}/src/npm/ publish-examples-blog: if: github.event_name == 'push' Loading @@ -177,6 +189,7 @@ jobs: with: deno-version: v1.x - run: deno task codegen working-directory: ${{ github.workspace }}/src/ - uses: denoland/deployctl@v1 with: project: fedify-blog Loading .gitignore +0 −7 Original line number Diff line number Diff line .cov/ .cov.lcov .dnt-import-map.json .DS_Store .test-report.xml apidoc/ coverage/ deno.lock npm/ .vscode/settings.json +27 −5 Original line number Diff line number Diff line Loading @@ -2,11 +2,6 @@ "deno.enable": true, "deno.unstable": true, "files.eol": "\n", "files.exclude": { "cli": true, "examples/blog": true, "examples/hono-sample": true }, "files.insertFinalNewline": true, "files.trimFinalNewlines": true, "yaml.completion": true, Loading @@ -17,6 +12,20 @@ "https://json-schema.org/draft/2020-12/schema": "/codegen/schema.yaml" }, "yaml.validate": true, "[javascript]": { "editor.defaultFormatter": "denoland.vscode-deno", "editor.formatOnSave": true, "editor.codeActionsOnSave": { "source.sortImports": "always" } }, "[javascriptreact]": { "editor.defaultFormatter": "denoland.vscode-deno", "editor.formatOnSave": true, "editor.codeActionsOnSave": { "source.sortImports": "always" } }, "[json]": { "editor.defaultFormatter": "vscode.json-language-features", "editor.formatOnSave": true Loading @@ -32,7 +41,15 @@ "source.sortImports": "always" } }, "[typescriptreact]": { "editor.defaultFormatter": "denoland.vscode-deno", "editor.formatOnSave": true, "editor.codeActionsOnSave": { "source.sortImports": "always" } }, "cSpell.words": [ "aarch64", "activitypub", "aitertools", "apidoc", Loading @@ -56,6 +73,7 @@ "fediverse", "Guppe", "halfyear", "highligher", "hongminhee", "hono", "httpsig", Loading @@ -70,18 +88,21 @@ "metas", "microblogging", "Misskey", "msvc", "multibase", "multikey", "multitenancy", "nodeinfo", "phensley", "Pixelfed", "poppanator", "proto", "redirections", "rels", "RSA-PKCS", "RSASSA-PKCS1", "setext", "shiki", "spki", "SSRF", "subproperty", Loading @@ -90,6 +111,7 @@ "tempserver", "unfollow", "unfollowing", "uuidv7", "urlpattern", "vitepress", "webfinger" Loading cli/.vscode/extensions.jsondeleted 100755 → 0 +0 −6 Original line number Diff line number Diff line { "recommendations": [ "denoland.vscode-deno", "streetsidesoftware.code-spell-checker" ] } cli/.vscode/settings.jsondeleted 100755 → 0 +0 −58 Original line number Diff line number Diff line { "deno.enable": true, "deno.unstable": true, "files.eol": "\n", "files.exclude": { "cli": true, "examples/blog": true, "examples/hono-sample": true }, "files.insertFinalNewline": true, "files.trimFinalNewlines": true, "git.openRepositoryInParentFolders": "never", "[json]": { "editor.defaultFormatter": "vscode.json-language-features", "editor.formatOnSave": true }, "[jsonc]": { "editor.defaultFormatter": "vscode.json-language-features", "editor.formatOnSave": true }, "[typescript]": { "editor.defaultFormatter": "denoland.vscode-deno", "editor.formatOnSave": true, "editor.codeActionsOnSave": { "source.sortImports": "always" } }, "[typescriptreact]": { "editor.defaultFormatter": "denoland.vscode-deno", "editor.formatOnSave": true, "editor.codeActionsOnSave": { "source.sortImports": "always" } }, "cSpell.words": [ "aarch64", "activitypub", "codegen", "Deno", "denokv", "docloader", "fedify", "fediverse", "halfyear", "highligher", "hongminhee", "hono", "httpsig", "logtape", "msvc", "multikey", "nodeinfo", "poppanator", "shiki", "tempserver", "webfinger" ] } Loading
.github/workflows/build.yaml +22 −9 Original line number Diff line number Diff line Loading @@ -25,32 +25,36 @@ jobs: with: bun-version: latest - run: deno task cache working-directory: ${{ github.workspace }}/src/ - run: deno task test --coverage=.cov --junit-path=.test-report.xml env: RUST_BACKTRACE: ${{ runner.debug }} working-directory: ${{ github.workspace }}/src/ - uses: EnricoMi/publish-unit-test-result-action@v2 if: runner.os == 'Linux' && always() with: check_name: "Test Results (Linux)" files: .test-report.xml files: src/.test-report.xml - uses: EnricoMi/publish-unit-test-result-action/macos@v2 if: runner.os == 'macOS' && always() with: check_name: "Test Results (macOS)" files: .test-report.xml files: src/.test-report.xml - uses: EnricoMi/publish-unit-test-result-action/windows@v2 if: runner.os == 'Windows' && always() with: check_name: "Test Results (Windows)" files: .test-report.xml files: src/.test-report.xml - run: deno coverage --lcov .cov > .cov.lcov working-directory: ${{ github.workspace }}/src/ - uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} file: .cov.lcov file: src/.cov.lcov - run: deno task dnt working-directory: ${{ github.workspace }}/src/ - run: bun test_runner.js working-directory: ${{ github.workspace }}/npm/ working-directory: ${{ github.workspace }}/src/npm/ lint: runs-on: ubuntu-latest Loading @@ -60,6 +64,7 @@ jobs: with: deno-version: v1.x - run: deno task hooks:pre-commit working-directory: ${{ github.workspace }}/src/ - run: deno task check working-directory: ${{ github.workspace }}/examples/blog/ Loading @@ -77,9 +82,11 @@ jobs: with: node-version: lts/* - run: deno task publish --dry-run working-directory: ${{ github.workspace }}/src/ - run: deno task dnt working-directory: ${{ github.workspace }}/src/ - run: npm publish --dry-run working-directory: ${{ github.workspace }}/npm/ working-directory: ${{ github.workspace }}/src/npm/ - run: deno task publish-dry-run working-directory: ${{ github.workspace }}/cli/ Loading @@ -106,17 +113,21 @@ jobs: '.version = .version + "-dev." + $build + "+" + $commit' \ deno.json > deno.json.tmp mv deno.json.tmp deno.json working-directory: ${{ github.workspace }}/src/ - if: github.ref_type == 'tag' run: | set -ex [[ "$(jq -r .version deno.json)" = "$GITHUB_REF_NAME" ]] ! grep -i "to be released" CHANGES.md working-directory: ${{ github.workspace }}/src/ # Don't know why, but the .gitignore list is not overriden by include list # in deno.json: - run: rm vocab/.gitignore working-directory: ${{ github.workspace }}/src/ - run: 'deno task dnt "$(jq -r .version deno.json)"' working-directory: ${{ github.workspace }}/src/ - run: npm pack working-directory: ${{ github.workspace }}/npm/ working-directory: ${{ github.workspace }}/src/npm/ - run: deno task pack working-directory: ${{ github.workspace }}/cli/ - id: extract-changelog Loading @@ -136,7 +147,7 @@ jobs: body_path: ${{ steps.extract-changelog.outputs.output-file }} name: Fedify ${{ github.ref_name }} files: | npm/*.tgz src/npm/*.tgz cli/fedify-cli-* generate_release_notes: false discussion_category_name: Announcements Loading @@ -144,6 +155,7 @@ jobs: github.event_name == 'push' && github.ref_type == 'tag' || github.ref == 'refs/heads/main' run: deno task publish --allow-dirty working-directory: ${{ github.workspace }}/src/ - if: | github.event_name == 'push' && github.ref_type == 'tag' || github.ref == 'refs/heads/main' Loading @@ -162,7 +174,7 @@ jobs: fi env: NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} working-directory: ${{ github.workspace }}/npm/ working-directory: ${{ github.workspace }}/src/npm/ publish-examples-blog: if: github.event_name == 'push' Loading @@ -177,6 +189,7 @@ jobs: with: deno-version: v1.x - run: deno task codegen working-directory: ${{ github.workspace }}/src/ - uses: denoland/deployctl@v1 with: project: fedify-blog Loading
.gitignore +0 −7 Original line number Diff line number Diff line .cov/ .cov.lcov .dnt-import-map.json .DS_Store .test-report.xml apidoc/ coverage/ deno.lock npm/
.vscode/settings.json +27 −5 Original line number Diff line number Diff line Loading @@ -2,11 +2,6 @@ "deno.enable": true, "deno.unstable": true, "files.eol": "\n", "files.exclude": { "cli": true, "examples/blog": true, "examples/hono-sample": true }, "files.insertFinalNewline": true, "files.trimFinalNewlines": true, "yaml.completion": true, Loading @@ -17,6 +12,20 @@ "https://json-schema.org/draft/2020-12/schema": "/codegen/schema.yaml" }, "yaml.validate": true, "[javascript]": { "editor.defaultFormatter": "denoland.vscode-deno", "editor.formatOnSave": true, "editor.codeActionsOnSave": { "source.sortImports": "always" } }, "[javascriptreact]": { "editor.defaultFormatter": "denoland.vscode-deno", "editor.formatOnSave": true, "editor.codeActionsOnSave": { "source.sortImports": "always" } }, "[json]": { "editor.defaultFormatter": "vscode.json-language-features", "editor.formatOnSave": true Loading @@ -32,7 +41,15 @@ "source.sortImports": "always" } }, "[typescriptreact]": { "editor.defaultFormatter": "denoland.vscode-deno", "editor.formatOnSave": true, "editor.codeActionsOnSave": { "source.sortImports": "always" } }, "cSpell.words": [ "aarch64", "activitypub", "aitertools", "apidoc", Loading @@ -56,6 +73,7 @@ "fediverse", "Guppe", "halfyear", "highligher", "hongminhee", "hono", "httpsig", Loading @@ -70,18 +88,21 @@ "metas", "microblogging", "Misskey", "msvc", "multibase", "multikey", "multitenancy", "nodeinfo", "phensley", "Pixelfed", "poppanator", "proto", "redirections", "rels", "RSA-PKCS", "RSASSA-PKCS1", "setext", "shiki", "spki", "SSRF", "subproperty", Loading @@ -90,6 +111,7 @@ "tempserver", "unfollow", "unfollowing", "uuidv7", "urlpattern", "vitepress", "webfinger" Loading
cli/.vscode/extensions.jsondeleted 100755 → 0 +0 −6 Original line number Diff line number Diff line { "recommendations": [ "denoland.vscode-deno", "streetsidesoftware.code-spell-checker" ] }
cli/.vscode/settings.jsondeleted 100755 → 0 +0 −58 Original line number Diff line number Diff line { "deno.enable": true, "deno.unstable": true, "files.eol": "\n", "files.exclude": { "cli": true, "examples/blog": true, "examples/hono-sample": true }, "files.insertFinalNewline": true, "files.trimFinalNewlines": true, "git.openRepositoryInParentFolders": "never", "[json]": { "editor.defaultFormatter": "vscode.json-language-features", "editor.formatOnSave": true }, "[jsonc]": { "editor.defaultFormatter": "vscode.json-language-features", "editor.formatOnSave": true }, "[typescript]": { "editor.defaultFormatter": "denoland.vscode-deno", "editor.formatOnSave": true, "editor.codeActionsOnSave": { "source.sortImports": "always" } }, "[typescriptreact]": { "editor.defaultFormatter": "denoland.vscode-deno", "editor.formatOnSave": true, "editor.codeActionsOnSave": { "source.sortImports": "always" } }, "cSpell.words": [ "aarch64", "activitypub", "codegen", "Deno", "denokv", "docloader", "fedify", "fediverse", "halfyear", "highligher", "hongminhee", "hono", "httpsig", "logtape", "msvc", "multikey", "nodeinfo", "poppanator", "shiki", "tempserver", "webfinger" ] }