content stringlengths 1 103k β | path stringlengths 8 216 | filename stringlengths 2 179 | language stringclasses 15
values | size_bytes int64 2 189k | quality_score float64 0.5 0.95 | complexity float64 0 1 | documentation_ratio float64 0 1 | repository stringclasses 5
values | stars int64 0 1k | created_date stringdate 2023-07-10 19:21:08 2025-07-09 19:11:45 | license stringclasses 4
values | is_test bool 2
classes | file_hash stringlengths 32 32 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
# Configure auto-generated GitHub Release Notes\nchangelog:\n exclude:\n labels:\n # Exclude PRs that are documented in `CHANGELOG.md`\n - A-Changelog\n categories:\n - title: Other changes\n labels:\n - '*' | dataset_sample\yaml\biomejs_biome\.github\release.yml | release.yml | YAML | 228 | 0.8 | 0 | 0.2 | node-utils | 40 | 2024-05-14T14:28:26.356929 | GPL-3.0 | false | c065ea3d1d111676cad7e52e34c2f298 |
name: π Formatter bug report\ndescription: Report a bug or regression of the formatter\ntitle: "π <TITLE>"\nlabels: [ "S-Needs triage" ]\ntype: Bug\nbody:\n - type: markdown\n attributes:\n value: Thank you for submitting the bug! We'll try to triage it ASAP!\n - type: markdown\n attributes:\n value: |\n Bug reports that don't follow this template will be closed.\n Please provide a clear and concise description of what the bug is.\n - type: textarea\n id: environment\n attributes:\n label: Environment information\n description: Run the command `biome rage --formatter` and paste its output here. Please review it, in case there are sensitive information you don't want to share.\n render: bash\n validations:\n required: true\n - type: textarea\n id: configuration\n attributes:\n label: Configuration\n description: Share the contents of you `biome.json` file\n render: JSON\n placeholder: |\n {\n "formatter": {},\n "javascript": {\n "formatter": {}\n }\n }\n validations:\n required: false\n - type: input\n id: playground-link\n attributes:\n label: Playground link\n description: |\n Provide a detailed list of steps that reproduce the issue\n The more information and included steps, the quicker your report can be triaged and addressed!\n\n You can also use the [playground](https://biomejs.dev/playground/) to share code snippets.\n This is useful to reproduce the issue.\n\n If you can't use the playground, use `npm create @biomejs/biome-reproduction` to quickly create a repository.\n placeholder: https://biomejs.dev/playground/...\n validations:\n required: true\n - type: checkboxes\n id: coc\n attributes:\n label: Code of Conduct\n description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/biomejs/biome/blob/main/CODE_OF_CONDUCT.md)\n options:\n - label: I agree to follow Biome's Code of Conduct\n required: true\n | dataset_sample\yaml\biomejs_biome\.github\ISSUE_TEMPLATE\01_formatter_bug.yml | 01_formatter_bug.yml | YAML | 2,078 | 0.95 | 0.033333 | 0 | vue-tools | 316 | 2024-01-28T11:45:30.130480 | GPL-3.0 | false | 02d547804f88be6f767482e9ea620017 |
name: π
Linter bug report\ndescription: Report a bug or regression of the linter\ntitle: "π
<TITLE>"\nlabels: [ "S-Needs triage" ]\ntype: Bug\nbody:\n - type: markdown\n attributes:\n value: Thank you for submitting the bug! We'll try to triage it ASAP!\n - type: markdown\n attributes:\n value: |\n Bug reports that don't follow this template will be closed.\n Please provide a clear and concise description of what the bug is.\n - type: textarea\n id: environment\n attributes:\n label: Environment information\n description: Run the command `biome rage --linter` and paste its output here. Please review it, in case there are sensitive information you don't want to share.\n render: bash\n validations:\n required: true\n - type: input\n id: rule-name\n attributes:\n label: Rule name\n description: The name of the rule\n validations:\n required: true\n - type: input\n id: playground-link\n attributes:\n label: Playground link\n description: |\n Provide a detailed list of steps that reproduce the issue\n The more information and included steps, the quicker your report can be triaged and addressed!\n\n You can also use the [playground](https://biomejs.dev/playground/) to share code snippets.\n This is useful to reproduce the issue.\n\n If you can't use the playground, use `npm create @biomejs/biome-reproduction` to quickly create a repository.\n placeholder: https://biomejs.dev/playground/...\n validations:\n required: true\n - type: textarea\n id: expected-result\n attributes:\n label: Expected result\n description: Describe what you expected to happen.\n placeholder: It should not throw an error.\n validations:\n required: true\n - type: checkboxes\n id: coc\n attributes:\n label: Code of Conduct\n description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/biomejs/biome/blob/main/CODE_OF_CONDUCT.md)\n options:\n - label: I agree to follow Biome's Code of Conduct\n required: true\n | dataset_sample\yaml\biomejs_biome\.github\ISSUE_TEMPLATE\02_lint_bug.yml | 02_lint_bug.yml | YAML | 2,113 | 0.95 | 0.033333 | 0 | react-lib | 968 | 2024-05-21T16:23:03.070289 | BSD-3-Clause | false | 5e979ad0abf56a073c0dca6faa23ec87 |
name: π Bug Report\ndescription: Report a possible bug or regression\ntitle: "π <TITLE>"\nlabels: [ "S-Needs triage" ]\ntype: Bug\nbody:\n - type: markdown\n attributes:\n value: Thank you for submitting the bug! We'll try to triage it ASAP!\n - type: markdown\n attributes:\n value: |\n Bug reports that don't follow this template will be closed.\n Please provide a clear and concise description of what the bug is.\n - type: textarea\n id: environment\n attributes:\n label: Environment information\n description: Run the command `biome rage` and paste its output here. Please review it, in case there are sensitive information you don't want to share.\n render: block\n validations:\n required: true\n - type: textarea\n id: steps-to-reproduce\n attributes:\n label: What happened?\n description: |\n Provide a detailed list of steps that reproduce the issue\n The more information and included steps, the quicker your report can be triaged and addressed!\n\n You can also use the [playground](https://biomejs.dev/playground/) to share code snippets.\n This is useful to reproduce the issue.\n\n If you can't use the playground, use `npm create @biomejs/biome-reproduction` to quickly create a repository.\n placeholder: |\n 1.\n 2.\n validations:\n required: true\n - type: textarea\n id: expected-result\n attributes:\n label: Expected result\n description: Describe what you expected to happen.\n placeholder: It should not throw an error.\n validations:\n required: true\n - type: checkboxes\n id: terms\n attributes:\n label: Code of Conduct\n description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/biomejs/biome/blob/main/CODE_OF_CONDUCT.md)\n options:\n - label: I agree to follow Biome's Code of Conduct\n required: true\n | dataset_sample\yaml\biomejs_biome\.github\ISSUE_TEMPLATE\03_bug.yml | 03_bug.yml | YAML | 1,938 | 0.95 | 0.036364 | 0 | react-lib | 319 | 2024-03-14T05:49:47.887681 | BSD-3-Clause | false | 9dc82252070a3dee91be137f7d5dd91f |
name: π Task\ndescription: Specific, actionable task. Typically opened by existing contributors. If you aren't sure, then create a discussion.\ntitle: "π <TITLE> "\ntype: Task\nbody:\n - type: textarea\n id: description\n attributes:\n label: Description\n description: A summary of the task\n validations:\n required: true\n | dataset_sample\yaml\biomejs_biome\.github\ISSUE_TEMPLATE\04_task.yml | 04_task.yml | YAML | 344 | 0.85 | 0 | 0 | node-utils | 275 | 2023-08-17T07:19:31.550961 | Apache-2.0 | false | 6a7ffba07369526aeb121ef72e75128a |
name: βοΈ Umbrella\ndescription: Discuss and track high level goals for a collection of other issues. Should only be opened with prior discussion.\ntitle: "βοΈ <TITLE> "\ntype: Umbrella\nbody:\n - type: textarea\n id: description\n attributes:\n label: Description\n description: Summary of the umbrella. Describe the scope and list the action items needed\n validations:\n required: true\n | dataset_sample\yaml\biomejs_biome\.github\ISSUE_TEMPLATE\05_umbrella.yml | 05_umbrella.yml | YAML | 409 | 0.85 | 0.083333 | 0 | vue-tools | 625 | 2023-08-03T22:02:15.643810 | GPL-3.0 | false | 0b6811d8e901b212f2290f4973f0e04f |
name: π³ Commercial Support Request\ndescription: A request for Commercial Support with Biome. We will try to bring you into contact with a freelancer who can help you.\ntitle: "π³ <TITLE> "\ntype: Enterprise\nbody:\n - type: textarea\n id: description\n attributes:\n label: Description\n description: A detailed description of the request. What would you like to see implemented? What requirements need to be fulfilled for the contract to be considered Done?\n validations:\n required: true\n - type: input\n id: country\n attributes:\n label: Country\n description: Country from which the freelancer would be hired\n validations:\n required: true\n - type: input\n id: timeframe\n attributes:\n label: Timeframe\n description: How urgent is your request?\n validations:\n required: true\n | dataset_sample\yaml\biomejs_biome\.github\ISSUE_TEMPLATE\06_commercial_request.yml | 06_commercial_request.yml | YAML | 844 | 0.85 | 0.115385 | 0 | awesome-app | 33 | 2024-09-05T06:28:32.514604 | GPL-3.0 | false | 8978a9d762a07b23e96227dc46d8b6ad |
blank_issues_enabled: false\ncontact_links:\n - name: π Documentation issues\n url: https://github.com/biomejs/website\n about: File an issue in the website repository\n - name: π§© VSCode extension issues\n url: https://github.com/biomejs/biome-vscode\n about: File an issue in the biome-vscode repository\n - name: π§© IntelliJ extension issues\n url: https://github.com/biomejs/biome-intellij\n about: File an issue in the biome-intellij repository\n - name: β
Linter rule suggestions\n url: https://github.com/biomejs/biome/discussions/new?category=rule-suggestion\n about: Please create a discussion for rule suggestions\n - name: π‘ Feature requests\n url: https://github.com/biomejs/biome/discussions/new\n about: Please use a new Github discussion to propose ideas of feature requests\n - name: π£οΈ Chat\n url: https://biomejs.dev/chat\n about: Our Discord server is active and is used for real-time discussions including contribution collaboration, questions, and more!\n - name: π€ Support\n url: https://biomejs.dev/chat\n about: "This issue tracker is not for support questions. Visit our community Discord and the #support channel for assistance!"\n - name: π Code of Conduct Reports\n url: https://github.com/biomejs/biome/blob/main/CODE_OF_CONDUCT.md#contributor-covenant-code-of-conduct\n about: Please use the contact information in Code of Conduct as issues created here are public\n | dataset_sample\yaml\biomejs_biome\.github\ISSUE_TEMPLATE\config.yml | config.yml | YAML | 1,449 | 0.8 | 0.153846 | 0 | react-lib | 769 | 2023-11-02T14:59:57.489296 | GPL-3.0 | false | 8faf3600affac0c2a5dcb1d5f5c6952f |
name: Benchmarks\n\non:\n workflow_dispatch:\n pull_request:\n types: [ opened, synchronize ]\n branches:\n - main\n paths:\n - 'Cargo.lock'\n - 'crates/**_parser/**/*.rs'\n - 'crates/**_formatter/**/*.rs'\n - 'crates/**_analyze/**/*.rs'\n - 'crates/biome_grit_patterns/**/*.rs'\n push:\n branches:\n - main\n paths:\n - 'Cargo.lock'\n - 'crates/**_parser/**/*.rs'\n - 'crates/**_formatter/**/*.rs'\n - 'crates/**_analyze/**/*.rs'\n - 'crates/biome_grit_patterns/**/*.rs'\n\nenv:\n RUST_LOG: info\n\njobs:\n bench:\n permissions:\n pull-requests: write\n name: Bench\n runs-on: depot-ubuntu-24.04-arm-16\n\n steps:\n\n - name: Checkout PR Branch\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n with:\n ref: ${{ steps.sha.outputs.result }}\n\n - name: Install toolchain\n uses: moonrepo/setup-rust@ede6de059f8046a5e236c94046823e2af11ca670 # v1.2.2\n with:\n channel: stable\n cache-target: release\n bins: cargo-codspeed\n cache-base: main\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n\n - name: Compile\n timeout-minutes: 20\n run: cargo codspeed build -p xtask_bench\n env:\n CARGO_BUILD_JOBS: 3 # Default is 4 (equals to the vCPU count of the runner), which leads OOM on cargo build\n\n - name: Run the benchmarks\n uses: CodSpeedHQ/action@0010eb0ca6e89b80c88e8edaaa07cfe5f3e6664d # v3.5.0\n timeout-minutes: 30\n with:\n run: cargo codspeed run\n token: ${{ secrets.CODSPEED_TOKEN }}\n | dataset_sample\yaml\biomejs_biome\.github\workflows\benchmark.yml | benchmark.yml | YAML | 1,637 | 0.8 | 0 | 0 | vue-tools | 491 | 2025-03-07T01:57:55.069792 | GPL-3.0 | false | ae29c765b3a0d944bab554d496e33c12 |
# CLI benchmark, compares main and PR branch with Hyperfine.\n# Comment with text containing `!bench_cli`, a new result will be commented at the bottom of this PR.\n\nname: CLI Benchmark\n\non:\n issue_comment:\n types: [ created ]\n\nenv:\n RUST_LOG: info\n\njobs:\n bench:\n permissions:\n pull-requests: write\n name: Bench\n if: github.event.issue.pull_request && contains(github.event.comment.body, '!bench_cli')\n runs-on: depot-ubuntu-24.04-arm-16\n\n steps:\n - name: Get PR SHA\n id: sha\n uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1\n with:\n result-encoding: string\n script: |\n const response = await github.request(context.payload.issue.pull_request.url);\n return response.data.head.sha;\n\n - name: Checkout PR Branch\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n with:\n ref: ${{ steps.sha.outputs.result }}\n\n - name: Install toolchain\n uses: moonrepo/setup-rust@ede6de059f8046a5e236c94046823e2af11ca670 # v1.2.2\n with:\n channel: stable\n cache-target: release\n cache-base: main\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n\n - name: Install hyperfine\n run: cargo install hyperfine\n\n - name: Compile on PR Branch\n run: |\n cargo build --release --bin biome\n mkdir -p benchmark/target\n cp target/release/biome benchmark/target/biome_pr\n\n - name: Checkout Main Branch\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n with:\n clean: false\n ref: main\n\n - name: Compile on Main Branch\n run: |\n cargo build --release --bin biome\n cp target/release/biome benchmark/target/biome_main\n\n - name: Checkout webpack\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n with:\n repository: webpack/webpack\n path: benchmark/target/webpack\n - name: Checkout prettier\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n with:\n repository: prettier/prettier\n path: benchmark/target/prettier\n - name: Checkout eslint\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n with:\n repository: eslint/eslint\n path: benchmark/target/eslint\n\n - name: Run Benchmarks\n id: benchmarks\n working-directory: benchmark/target\n env:\n FORMAT_BENCH_COMMAND: "format webpack/lib webpack/examples webpack/declarations webpack/benchmark prettier/src prettier/scripts --write"\n CHECK_BENCH_COMMAND: "--max-diagnostics=0 eslint/lib eslint/messages eslint/tests/lib eslint/tests/performance eslint/tools webpack/lib --no-errors-on-unmatched"\n run: |\n hyperfine -w 2 --export-markdown benchmark_format.md \\n -n "biome format (main)" "./biome_main $FORMAT_BENCH_COMMAND" \\n -n "biome format (pr)" "./biome_pr $FORMAT_BENCH_COMMAND"\n hyperfine -w 2 --export-markdown --ignore-failure benchmark_check.md \\n -n "biome check (main)" "./biome_main check $CHECK_BENCH_COMMAND" \\n -n "biome check (pr)" "./biome_pr check $CHECK_BENCH_COMMAND"\n cat benchmark_format.md >> benchmark.md\n echo $'\n' >> benchmark.md\n cat benchmark_check.md >> benchmark.md\n\n - name: Write a new comment\n # Check if the event is not triggered by a fork\n if: github.event.pull_request.head.repo.full_name == github.repository\n uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4\n continue-on-error: true\n with:\n issue-number: ${{ github.event.issue.number }}\n body-file: benchmark/target/benchmark.md\n | dataset_sample\yaml\biomejs_biome\.github\workflows\bench_cli.yml | bench_cli.yml | YAML | 3,915 | 0.8 | 0.028571 | 0.032967 | python-kit | 1 | 2024-07-16T14:21:25.831329 | MIT | false | 5674577eadc363be296eb797874cdd13 |
name: Beta release CLI\non:\n workflow_dispatch:\n inputs:\n version:\n type: string\n required: true\n description: The version to release\n\nenv:\n INPUT_VERSION: ${{ inputs.version }}\n\njobs:\n version:\n name: Generate version\n runs-on: depot-ubuntu-24.04-arm-16\n outputs:\n version: ${{ env.version }}\n steps:\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n\n - name: Set beta version\n run: |\n echo "version=$(node packages/@biomejs/biome/scripts/update-beta-version.mjs)" >> $GITHUB_ENV\n\n build:\n needs: version\n strategy:\n matrix:\n include:\n - os: depot-windows-2022\n target: x86_64-pc-windows-msvc\n code-target: win32-x64\n - os: depot-windows-2022\n target: aarch64-pc-windows-msvc\n code-target: win32-arm64\n - os: depot-ubuntu-22.04\n target: x86_64-unknown-linux-gnu\n code-target: linux-x64\n - os: depot-ubuntu-22.04-arm\n target: aarch64-unknown-linux-gnu\n code-target: linux-arm64\n - os: depot-ubuntu-22.04\n target: x86_64-unknown-linux-musl\n code-target: linux-x64-musl\n - os: depot-ubuntu-22.04-arm\n target: aarch64-unknown-linux-musl\n code-target: linux-arm64-musl\n - os: depot-macos-14\n target: x86_64-apple-darwin\n code-target: darwin-x64\n - os: depot-macos-14\n target: aarch64-apple-darwin\n code-target: darwin-arm64\n\n name: Package ${{ matrix.code-target }}\n runs-on: ${{ matrix.os }}\n\n env:\n version: ${{ needs.version.outputs.version }}\n outputs:\n version: ${{ env.version }}\n\n steps:\n - name: Checkout repository\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n\n - name: Install Node.js\n uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0\n with:\n node-version: 20\n\n - name: Install Rust toolchain\n run: rustup target add ${{ matrix.target }}\n\n - name: Install arm64 toolchain\n if: matrix.code-target == 'linux-arm64' || matrix.code-target == 'linux-arm64-musl'\n run: |\n sudo apt-get update\n sudo apt-get install -y gcc-aarch64-linux-gnu\n\n - name: Install musl toolchain\n if: matrix.code-target == 'linux-x64-musl' || matrix.code-target == 'linux-arm64-musl'\n run: |\n sudo apt-get update\n sudo apt-get install -y musl-tools\n\n - name: Audit crates.io dependencies\n if: matrix.code-target == 'linux-x64'\n run: cargo audit\n\n - name: Set jemalloc page size for linux-arm64\n if: matrix.code-target == 'linux-arm64'\n run: |\n echo "JEMALLOC_SYS_WITH_LG_PAGE=16" >> $GITHUB_ENV\n\n # Build the CLI binary\n - name: Build binaries\n run: cargo build -p biome_cli --release --target ${{ matrix.target }}\n env:\n CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc\n CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER: aarch64-linux-gnu-gcc\n # Strip all debug symbols from the resulting binaries\n RUSTFLAGS: "-C strip=symbols -C codegen-units=1"\n # Inline the version of the npm package in the CLI binary\n BIOME_VERSION: ${{ env.version }}\n\n # Copy the CLI binary and rename it to include the name of the target platform\n - name: Copy CLI binary\n if: matrix.os == 'windows-2022'\n run: |\n mkdir dist\n cp target/${{ matrix.target }}/release/biome.exe ./dist/biome-${{ matrix.code-target }}.exe\n - name: Copy CLI binary\n if: matrix.os != 'windows-2022'\n run: |\n mkdir dist\n cp target/${{ matrix.target }}/release/biome ./dist/biome-${{ matrix.code-target }}\n\n # Upload the CLI binary as a build artifact\n - name: Upload CLI artifact\n uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2\n with:\n name: cli-${{ matrix.target }}\n path: ./dist/biome-*\n if-no-files-found: error\n\n build-wasm:\n name: Build WASM\n runs-on: depot-ubuntu-24.04-arm-16\n steps:\n - name: Checkout repository\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n\n - name: Install wasm-pack\n run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh\n\n - name: Build WASM module for bundlers\n run: wasm-pack build --out-dir ../../packages/@biomejs/wasm-bundler --target bundler --release --scope biomejs crates/biome_wasm\n - name: Build WASM module for node.js\n run: wasm-pack build --out-dir ../../packages/@biomejs/wasm-nodejs --target nodejs --release --scope biomejs crates/biome_wasm\n - name: Build WASM module for the web\n run: wasm-pack build --out-dir ../../packages/@biomejs/wasm-web --target web --release --scope biomejs crates/biome_wasm\n\n - name: Upload WASM artifact\n uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2\n with:\n name: wasm-${{ matrix.target }}\n path: |\n ./packages/@biomejs/wasm-bundler\n ./packages/@biomejs/wasm-nodejs\n ./packages/@biomejs/wasm-web\n if-no-files-found: error\n\n publish:\n name: Publish\n runs-on: depot-ubuntu-24.04-arm-16\n needs:\n - build\n - build-wasm\n environment: npm-publish\n permissions:\n contents: write\n id-token: write\n steps:\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n\n - name: Download CLI artifacts\n uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1\n with:\n pattern: cli-*\n merge-multiple: true\n - name: Download WASM artifacts\n uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1\n with:\n pattern: wasm-*\n merge-multiple: true\n path: packages/@biomejs\n\n - name: Install Node.js\n uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0\n with:\n node-version: 20\n registry-url: 'https://registry.npmjs.org'\n\n - name: Pin Corepack 0.20\n run: |\n echo "Before: corepack => $(corepack --version || echo 'not installed')"\n npm install -g corepack@0.20\n echo "After : corepack => $(corepack --version)"\n corepack enable\n pnpm --version\n\n - name: Set beta version\n run: node packages/@biomejs/biome/scripts/update-beta-version.mjs\n\n - name: Generate npm packages\n run: node packages/@biomejs/biome/scripts/generate-packages.mjs\n\n - name: Publish npm packages as beta\n run: |\n for package in packages/@biomejs/*; do\n if [ $package != "packages/@biomejs/js-api" ]; then\n npm publish $package --tag beta --access public --provenance\n fi\n done\n env:\n NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}\n\n - name: Create GitHub release and tag\n uses: softprops/action-gh-release@da05d552573ad5aba039eaac05058a918a7bf631 # v2.2.2\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n with:\n name: CLI v${{ needs.build.outputs.version }}\n tag_name: "@biomejs/biome@${{ needs.build.outputs.version }}"\n draft: false\n prerelease: true\n files: |\n biome-*\n fail_on_unmatched_files: true\n generate_release_notes: true\n | dataset_sample\yaml\biomejs_biome\.github\workflows\beta.yml | beta.yml | YAML | 7,722 | 0.95 | 0.063063 | 0.025773 | vue-tools | 87 | 2024-12-21T08:01:25.806590 | GPL-3.0 | false | 3c36ddb8c951d757d7741ca4a1ecb1ca |
name: Beta release JavaScript API\non:\n workflow_dispatch:\n inputs:\n version:\n type: string\n required: true\n description: The version to release\n\nenv:\n INPUT_VERSION: ${{ inputs.version }}\n\njobs:\n version:\n name: Generate version\n runs-on: depot-ubuntu-24.04-arm-16\n outputs:\n version: ${{ env.version }}\n steps:\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n\n - name: Set beta version\n run: |\n echo "version=$(node packages/@biomejs/js-api/scripts/update-beta-version.mjs)" >> $GITHUB_ENV\n\n build:\n needs: version\n name: Package JavaScript APIs\n runs-on: depot-ubuntu-24.04-arm-16\n\n env:\n version: ${{ needs.version.outputs.version }}\n outputs:\n version: ${{ env.version }}\n\n steps:\n - name: Checkout repository\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n\n - name: Install Node.js\n uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0\n with:\n node-version: 20\n\n - name: Install wasm-pack\n run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh\n\n - name: Cache pnpm modules\n uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3\n with:\n path: ~/.pnpm-store\n key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}\n restore-keys: |\n ${{ runner.os }}-\n - uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0\n\n - name: Set beta version\n run: node packages/@biomejs/js-api/scripts/update-beta-version.mjs\n\n - name: Compile backends\n run: |\n pnpm --filter @biomejs/js-api run build:wasm-bundler\n pnpm --filter @biomejs/js-api run build:wasm-node\n pnpm --filter @biomejs/js-api run build:wasm-web\n pnpm --filter @biomejs/backend-jsonrpc i\n pnpm --filter @biomejs/backend-jsonrpc run build\n\n - name: Build package\n run: |\n pnpm --filter @biomejs/js-api i\n pnpm --filter @biomejs/js-api run build\n\n - name: Upload JS API artifact\n uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2\n with:\n name: js-api\n path: |\n ./packages/@biomejs/js-api/dist\n if-no-files-found: error\n\n publish:\n name: Publish\n runs-on: depot-ubuntu-24.04-arm-16\n needs: build\n environment: npm-publish\n permissions:\n contents: write\n id-token: write\n steps:\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n\n - name: Download package artifact\n uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1\n with:\n name: js-api\n path: packages/@biomejs/js-api/dist\n\n - name: Install Node.js\n uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0\n with:\n node-version: 20\n registry-url: 'https://registry.npmjs.org'\n\n - name: Set beta version\n run: node packages/@biomejs/js-api/scripts/update-beta-version.mjs\n\n - name: Publish npm package as beta\n run: npm publish packages/@biomejs/js-api --tag beta --access public --provenance\n env:\n NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}\n\n - name: Create GitHub release and tag\n uses: softprops/action-gh-release@da05d552573ad5aba039eaac05058a918a7bf631 # v2.2.2\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n with:\n name: JavaScript APIs v${{ needs.build.outputs.version }}\n tag_name: "@biomejs/js-api@v${{ needs.build.outputs.version }}"\n draft: false\n prerelease: true\n generate_release_notes: true\n | dataset_sample\yaml\biomejs_biome\.github\workflows\beta_js_api.yml | beta_js_api.yml | YAML | 3,851 | 0.95 | 0.008264 | 0 | vue-tools | 514 | 2023-08-10T16:32:21.509366 | GPL-3.0 | false | 43f3cdadc0984d657a92b850090c256a |
name: Close issues\n\non:\n schedule:\n - cron: "0 0 * * *"\n\n\npermissions:\n issues: write\n\njobs:\n close-issues:\n if: github.repository == 'biomejs/biome'\n runs-on: depot-ubuntu-24.04-arm-small\n steps:\n - name: Close issue without reproduction\n uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3.6.0\n with:\n actions: "close-issues"\n token: ${{ secrets.GITHUB_TOKEN }}\n labels: "S-Needs repro"\n inactive-day: 3\n | dataset_sample\yaml\biomejs_biome\.github\workflows\close-issue.yml | close-issue.yml | YAML | 503 | 0.8 | 0.045455 | 0 | python-kit | 712 | 2024-04-13T13:49:34.928277 | Apache-2.0 | false | eaa697f1e3ea812504c6922e3683ab10 |
# Automatically labels PRs based on the configuration file\n# you are probably looking for π `.github/labeler.yml`\nname: Label PRs\n\non:\n - pull_request_target\n\njobs:\n triage:\n permissions:\n contents: read\n pull-requests: write\n runs-on: depot-ubuntu-24.04-arm-small\n if: github.repository_owner == 'biomejs'\n steps:\n - uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5\n with:\n repo-token: "${{ secrets.GITHUB_TOKEN }}"\n sync-labels: true\n | dataset_sample\yaml\biomejs_biome\.github\workflows\labels.yml | labels.yml | YAML | 512 | 0.8 | 0.105263 | 0.117647 | python-kit | 122 | 2024-06-18T23:42:52.173268 | Apache-2.0 | false | b84d92c4bb800165e5540c739b33d81d |
# This workflow run when something is pushed on main and it does:\n# - normal checks like in the normal PRs\n# - expand the test suite to be run on multiple OS\n# - runs the coverage and prints in the command line\nname: CI on main\non:\n workflow_dispatch:\n push:\n branches:\n - main\n\nenv:\n RUST_LOG: info\n RUST_BACKTRACE: 1\n RUSTUP_WINDOWS_PATH_ADD_BIN: 1\n\njobs:\n format:\n name: Format Rust Files\n runs-on: depot-ubuntu-24.04-arm-16\n steps:\n - name: Checkout repository\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - name: Support longpaths\n run: git config core.longpaths true\n - name: Checkout repository\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - name: Free Disk Space\n uses: ./.github/actions/free-disk-space\n - name: Install toolchain\n uses: moonrepo/setup-rust@ede6de059f8046a5e236c94046823e2af11ca670 # v1.2.2\n with:\n components: rustfmt\n bins: taplo-cli\n cache-base: main\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n - name: Run rustfmt\n run: |\n cargo fmt --all --verbose -- --check\n taplo format --check\n\n lint:\n name: Lint Rust Files\n runs-on: depot-ubuntu-24.04-arm-16\n steps:\n - name: Checkout repository\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - name: Free Disk Space\n uses: ./.github/actions/free-disk-space\n - name: Install toolchain\n uses: moonrepo/setup-rust@ede6de059f8046a5e236c94046823e2af11ca670 # v1.2.2\n with:\n components: clippy\n cache-base: main\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n - name: Run cargo check\n run: cargo check --workspace --all-targets --release\n - name: Run clippy\n run: cargo lint\n\n check-dependencies:\n name: Check Dependencies\n runs-on: depot-ubuntu-24.04-arm-16\n steps:\n - name: Checkout repository\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - name: Free Disk Space\n uses: ./.github/actions/free-disk-space\n - name: Install toolchain\n uses: moonrepo/setup-rust@ede6de059f8046a5e236c94046823e2af11ca670 # v1.2.2\n with:\n channel: nightly\n cache: false\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n - name: Install udeps\n run: cargo install cargo-udeps --locked\n - name: Run udeps\n run: cargo +nightly udeps --all-targets\n\n test:\n name: Test\n runs-on: ${{ matrix.os }}\n strategy:\n matrix:\n include:\n - os: windows-latest\n - os: depot-ubuntu-24.04-arm-16\n - os: macos-latest\n steps:\n - name: Checkout repository\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - name: Free Disk Space\n uses: ./.github/actions/free-disk-space\n - name: Install toolchain\n uses: moonrepo/setup-rust@ede6de059f8046a5e236c94046823e2af11ca670 # v1.2.2\n with:\n cache-base: main\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n - name: Run tests on ${{ matrix.os }}\n run: cargo test --workspace\n\n coverage:\n name: Test262 Coverage\n runs-on: ${{ matrix.os }}\n strategy:\n fail-fast: false\n matrix:\n os: [ windows-latest, depot-ubuntu-24.04-arm-16 ]\n steps:\n # ref: https://github.com/orgs/community/discussions/26952\n - name: Support longpaths\n if: matrix.os == 'windows-latest'\n run: git config --system core.longpaths true\n - name: Checkout repository\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n with:\n submodules: recursive\n - name: Free Disk Space\n uses: ./.github/actions/free-disk-space\n - name: Install toolchain\n uses: moonrepo/setup-rust@ede6de059f8046a5e236c94046823e2af11ca670 # v1.2.2\n with:\n cache-target: release\n cache-base: main\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n - name: Compile\n run: cargo build --release --locked -p xtask_coverage\n - name: Run Test262 suite\n continue-on-error: true\n run: cargo coverage\n - name: Clean cache\n run: cargo cache --autoclean\n | dataset_sample\yaml\biomejs_biome\.github\workflows\main.yml | main.yml | YAML | 4,418 | 0.8 | 0.007299 | 0.038168 | awesome-app | 264 | 2025-04-07T15:06:13.404409 | MIT | false | 53efb60e206141661165dbb3bb3959f3 |
name: Needs reproduction\n\non:\n issues:\n types: [ labeled ]\n\npermissions:\n issues: write\n\njobs:\n reply-labeled:\n if: github.repository == 'biomejs/biome'\n runs-on: depot-ubuntu-24.04-arm-small\n steps:\n - name: Remove triaging label\n if: contains(github.event.issue.labels.*.name, 'S-Bug-confirmed') && contains(github.event.issue.labels.*.name, 'S-Needs triage')\n uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3.6.0\n with:\n actions: "remove-labels"\n token: ${{ secrets.GITHUB_TOKEN }}\n issue-number: ${{ github.event.issue.number }}\n labels: "S-Needs triage"\n\n - name: Needs reproduction\n if: github.event.label.name == 'S-Needs repro'\n uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3.6.0\n with:\n actions: "create-comment, remove-labels"\n token: ${{ secrets.GITHUB_TOKEN }}\n issue-number: ${{ github.event.issue.number }}\n body: |\n Hello @${{ github.event.issue.user.login }}, please provide a minimal reproduction. You can use one of the following options:\n\n - Provide a link to [our playground](https://biomejs.dev/playground), if it's applicable.\n - Provide a link to GitHub repository. To easily create a reproduction, you can use our interactive CLI via `npm create @biomejs/biome-reproduction`\n\n Issues marked with `S-Needs repro` will be **closed** if they have **no activity within 3 days**.\n labels: "S-Needs triage"\n | dataset_sample\yaml\biomejs_biome\.github\workflows\needs-repro.yml | needs-repro.yml | YAML | 1,579 | 0.8 | 0.131579 | 0 | awesome-app | 421 | 2024-10-17T18:28:23.657590 | Apache-2.0 | false | b40cb83a70c49e6efeec0c135ca97da2 |
# Test coverage job. It is run on pull request because it prints the results via comment\nname: Parser conformance and comparison\non:\n pull_request:\n branches:\n - main\n paths:\n - 'crates/biome_js_syntax/**'\n - 'crates/biome_js_factory/**'\n - 'crates/biome_js_semantic/**'\n - 'crates/biome_js_parser/**'\n - 'crates/biome_rowan/**'\n - 'xtask/**'\n\nenv:\n RUST_LOG: info\n RUST_BACKTRACE: 1\n\njobs:\n coverage:\n permissions:\n pull-requests: write\n name: Parser conformance\n runs-on: depot-ubuntu-24.04-arm-16\n\n steps:\n - name: Checkout PR Branch\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n\n - name: Support longpaths\n run: git config core.longpaths true\n\n - name: Checkout PR Branch\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n with:\n submodules: recursive\n\n - name: Free Disk Space\n uses: ./.github/actions/free-disk-space\n\n - name: Install toolchain\n uses: moonrepo/setup-rust@ede6de059f8046a5e236c94046823e2af11ca670 # v1.2.2\n with:\n cache-target: release\n cache-base: main\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n\n - name: Compile\n run: cargo build --release --locked -p xtask_coverage\n\n - name: Run Test suites\n continue-on-error: true\n run: cargo coverage --json > new_results.json\n\n - name: Checkout main Branch\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n with:\n clean: false\n ref: main\n submodules: recursive\n\n - name: Run Test suites on main branch\n continue-on-error: true\n run: cargo coverage --json > base_results.json\n\n - name: Compare results on ${{ matrix.os }}\n if: github.event_name == 'pull_request'\n id: comparison\n shell: bash\n run: |\n echo "## Parser conformance results on ${{ matrix.os }}" > output\n cargo coverage compare ./base_results.json ./new_results.json --markdown >> output\n cat output\n echo "comment<<EOF" >> $GITHUB_OUTPUT\n cat output >> $GITHUB_OUTPUT\n echo "EOF" >> $GITHUB_OUTPUT\n\n - name: Get the PR number\n if: github.event_name == 'pull_request'\n id: pr-number\n uses: kkak10/pr-number-action@8f5358941366822cd0825e04dfe68437f2f5f15b # v1.3\n\n - name: Find Previous Comment\n if: github.event_name == 'pull_request'\n uses: peter-evans/find-comment@3eae4d37986fb5a8592848f6a574fdf654e61f9e # v3.1.0\n id: previous-comment\n with:\n issue-number: ${{ steps.pr-number.outputs.pr }}\n body-includes: Parser conformance results on ${{ matrix.os }}\n\n - name: Update existing comment\n if: github.event_name == 'pull_request' && steps.previous-comment.outputs.comment-id\n uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4\n continue-on-error: true\n with:\n comment-id: ${{ steps.previous-comment.outputs.comment-id }}\n body: |\n ${{ steps.comparison.outputs.comment }}\n edit-mode: replace\n\n - name: Write a new comment\n if: github.event_name == 'pull_request' && !steps.previous-comment.outputs.comment-id\n uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4\n continue-on-error: true\n with:\n issue-number: ${{ steps.pr-number.outputs.pr }}\n body: |\n ${{ steps.comparison.outputs.comment }}\n\n - name: Clean cache\n run: cargo cache --autoclean\n | dataset_sample\yaml\biomejs_biome\.github\workflows\parser_conformance.yml | parser_conformance.yml | YAML | 3,716 | 0.8 | 0.044643 | 0.010526 | python-kit | 474 | 2024-07-26T18:01:03.511533 | GPL-3.0 | false | ad6227102ad0beebaf194a6d7fdd36f2 |
name: Preview releases\non:\n workflow_dispatch:\n schedule:\n # This cron schedule runs the workflow at midnight (00:00) on Tuesdays and Saturdays.\n - cron: '0 0 * * 2,6'\n\njobs:\n version:\n name: Generate version\n runs-on: depot-ubuntu-24.04-arm-16\n outputs:\n version: ${{ env.version }}\n steps:\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n\n - name: Set version\n run: |\n echo "version=$(node packages/@biomejs/biome/scripts/update-preview-version.mjs)" >> $GITHUB_ENV\n\n build-binaries:\n needs: version\n strategy:\n matrix:\n include:\n - os: depot-windows-2022\n target: x86_64-pc-windows-msvc\n code-target: win32-x64\n - os: depot-windows-2022\n target: aarch64-pc-windows-msvc\n code-target: win32-arm64\n - os: depot-ubuntu-22.04\n target: x86_64-unknown-linux-gnu\n code-target: linux-x64\n - os: depot-ubuntu-22.04-arm\n target: aarch64-unknown-linux-gnu\n code-target: linux-arm64\n - os: depot-ubuntu-22.04\n target: x86_64-unknown-linux-musl\n code-target: linux-x64-musl\n - os: depot-ubuntu-22.04-arm\n target: aarch64-unknown-linux-musl\n code-target: linux-arm64-musl\n - os: depot-macos-14\n target: x86_64-apple-darwin\n code-target: darwin-x64\n - os: depot-macos-14\n target: aarch64-apple-darwin\n code-target: darwin-arm64\n\n name: Package ${{ matrix.code-target }}\n runs-on: ${{ matrix.os }}\n\n steps:\n - name: Checkout repository\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n\n - name: Install Node.js\n uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0\n with:\n node-version: 20\n\n - name: Install Rust toolchain\n run: rustup target add ${{ matrix.target }}\n\n - name: Install arm64 toolchain\n if: matrix.code-target == 'linux-arm64' || matrix.code-target == 'linux-arm64-musl'\n run: |\n sudo apt-get update\n sudo apt-get install -y gcc-aarch64-linux-gnu\n\n - name: Install musl toolchain\n if: matrix.code-target == 'linux-x64-musl' || matrix.code-target == 'linux-arm64-musl'\n run: |\n sudo apt-get update\n sudo apt-get install -y musl-tools\n\n - name: Audit crates.io dependencies\n if: matrix.code-target == 'linux-x64'\n run: cargo audit\n\n - name: Set jemalloc page size for linux-arm64\n if: matrix.code-target == 'linux-arm64'\n run: |\n echo "JEMALLOC_SYS_WITH_LG_PAGE=16" >> $GITHUB_ENV\n\n # Build the CLI binary\n - name: Build binaries\n run: cargo build -p biome_cli --release --target ${{ matrix.target }}\n env:\n CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc\n CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER: aarch64-linux-gnu-gcc\n # Strip all debug symbols from the resulting binaries\n RUSTFLAGS: "-C strip=symbols -C codegen-units=1"\n # Inline the version of the npm package in the CLI binary\n BIOME_VERSION: ${{ env.cli-version }}\n\n # Copy the CLI binary and rename it to include the name of the target platform\n - name: Copy CLI binary\n if: matrix.os == 'windows-2022'\n run: |\n mkdir dist\n cp target/${{ matrix.target }}/release/biome.exe ./dist/biome-${{ matrix.code-target }}.exe\n - name: Copy CLI binary\n if: matrix.os != 'windows-2022'\n run: |\n mkdir dist\n cp target/${{ matrix.target }}/release/biome ./dist/biome-${{ matrix.code-target }}\n\n # Upload the CLI binary as a build artifact\n - name: Upload CLI artifact\n uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2\n with:\n name: cli-${{ matrix.target }}\n path: ./dist/biome-*\n if-no-files-found: error\n\n build-wasm:\n name: Build WASM\n runs-on: depot-ubuntu-24.04-arm-16\n needs: version\n steps:\n - name: Checkout repository\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n\n - name: Install wasm-pack\n run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh\n\n - name: Build WASM module for bundlers\n run: wasm-pack build --out-dir ../../packages/@biomejs/wasm-bundler --target bundler --release --scope biomejs crates/biome_wasm\n - name: Build WASM module for node.js\n run: wasm-pack build --out-dir ../../packages/@biomejs/wasm-nodejs --target nodejs --release --scope biomejs crates/biome_wasm\n - name: Build WASM module for the web\n run: wasm-pack build --out-dir ../../packages/@biomejs/wasm-web --target web --release --scope biomejs crates/biome_wasm\n\n - name: Upload WASM artifact\n uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2\n with:\n name: wasm-${{ matrix.target }}\n path: |\n ./packages/@biomejs/wasm-bundler\n ./packages/@biomejs/wasm-nodejs\n ./packages/@biomejs/wasm-web\n if-no-files-found: error\n\n publish:\n name: Publish\n runs-on: depot-ubuntu-24.04-arm-16\n needs:\n - build-binaries\n - build-wasm\n permissions:\n contents: write\n id-token: write\n steps:\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n\n - name: Download CLI artifacts\n uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1\n with:\n pattern: cli-*\n merge-multiple: true\n - name: Download WASM artifacts\n uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1\n with:\n pattern: wasm-*\n merge-multiple: true\n path: packages/@biomejs\n\n - name: Install Node.js\n uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0\n with:\n node-version: 20\n registry-url: 'https://registry.npmjs.org'\n\n - name: Pin Corepack 0.20\n run: |\n echo "Before: corepack => $(corepack --version || echo 'not installed')"\n npm install -g corepack@0.20\n echo "After : corepack => $(corepack --version)"\n corepack enable\n pnpm --version\n\n - name: Generate npm packages\n run: node packages/@biomejs/biome/scripts/generate-packages.mjs\n\n - name: Publish version\n run: |\n pnpx pkg-pr-new publish --compact \\n './packages/@biomejs/biome' \\n './packages/@biomejs/cli-*' \\n './packages/@biomejs/wasm-*' \\n --json output.json --comment=off\n\n - name: Read published version\n uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1\n id: version-msg\n with:\n script: |\n const fs = require('fs');\n const output = JSON.parse(fs.readFileSync('output.json', 'utf8'));\n const biomePackage = output.packages\n .find((p) => p.name === "@biomejs/biome");\n\n return "New preview release available for `@biomejs/biome`. Install it using the following command:\n ```bash\n npm i " + biomePackage.url + "\n```";\n\n result-encoding: string\n\n - name: Send Discord message\n uses: tsickert/discord-webhook@b217a69502f52803de774ded2b1ab7c282e99645 # v7.0.0\n with:\n webhook-url: ${{ secrets.DISCORD_PREVIEW_RELEASES_HOOK }}\n content: ${{ steps.version-msg.outputs.result }}\n | dataset_sample\yaml\biomejs_biome\.github\workflows\preview.yml | preview.yml | YAML | 7,756 | 0.95 | 0.061033 | 0.032432 | node-utils | 679 | 2023-11-19T03:08:17.411271 | Apache-2.0 | false | c05793261254444faa76100f744ecb0a |
# Jobs run on pull request\nname: Pull request\non:\n pull_request:\n branches:\n - main\n paths: # Only run when changes are made to rust code or root Cargo\n - "crates/**"\n - "fuzz/**"\n - "xtask/**"\n - "Cargo.toml"\n - "Cargo.lock"\n - "rust-toolchain.toml"\n - "rustfmt.toml"\n\n# Cancel jobs when the PR is updated\nconcurrency:\n group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}\n cancel-in-progress: true\n\nenv:\n RUST_LOG: info\n RUST_BACKTRACE: 1\n RUSTUP_WINDOWS_PATH_ADD_BIN: 1\n\njobs:\n format:\n name: Format project\n runs-on: depot-ubuntu-24.04-arm-16\n steps:\n - name: Checkout PR branch\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - name: Free Disk Space\n uses: ./.github/actions/free-disk-space\n - name: Install toolchain\n uses: moonrepo/setup-rust@ede6de059f8046a5e236c94046823e2af11ca670 # v1.2.2\n with:\n components: rustfmt\n bins: taplo-cli\n cache-base: main\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n - name: Run format\n run: |\n cargo fmt --all --check\n taplo format --check\n\n lint:\n name: Lint project\n runs-on: depot-ubuntu-24.04-arm-16\n steps:\n - name: Checkout PR Branch\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - name: Free Disk Space\n uses: ./.github/actions/free-disk-space\n - name: Install toolchain\n uses: moonrepo/setup-rust@ede6de059f8046a5e236c94046823e2af11ca670 # v1.2.2\n with:\n components: clippy\n cache-base: main\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n - name: Run clippy\n run: |\n cargo lint\n cargo run -p rules_check\n\n check-dependencies:\n name: Check Dependencies\n runs-on: depot-ubuntu-24.04-arm-16\n steps:\n - name: Checkout PR Branch\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - name: Free Disk Space\n uses: ./.github/actions/free-disk-space\n - name: Install toolchain\n uses: moonrepo/setup-rust@ede6de059f8046a5e236c94046823e2af11ca670 # v1.2.2\n with:\n channel: nightly\n cache: false\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n - name: Install udeps\n run: cargo install cargo-udeps --locked\n - name: Detect unused dependencies using udeps\n run: cargo +nightly udeps --all-targets\n\n test:\n name: Test\n runs-on: ${{ matrix.os }}\n strategy:\n matrix:\n include:\n - os: windows-latest\n - os: depot-ubuntu-24.04-arm-16\n steps:\n - name: Checkout PR branch\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - name: Free Disk Space\n uses: ./.github/actions/free-disk-space\n - name: Install toolchain\n uses: moonrepo/setup-rust@ede6de059f8046a5e236c94046823e2af11ca670 # v1.2.2\n with:\n cache-base: main\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n - name: Run tests\n run: cargo test --workspace\n\n e2e-tests:\n name: End-to-end tests\n runs-on: depot-ubuntu-24.04-arm-16\n steps:\n - name: Checkout PR branch\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - name: Free Disk Space\n uses: ./.github/actions/free-disk-space\n - name: Install toolchain\n uses: moonrepo/setup-rust@ede6de059f8046a5e236c94046823e2af11ca670 # v1.2.2\n with:\n cache-base: main\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n - name: Build Biome debug binary\n run: cargo build --bin biome\n - name: Run tests\n run: |\n cd e2e-tests\n sh test-all.sh\n\n documentation:\n name: Documentation\n runs-on: depot-ubuntu-24.04-arm-16\n steps:\n - name: Checkout PR branch\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - name: Free Disk Space\n uses: ./.github/actions/free-disk-space\n - name: Install toolchain\n uses: moonrepo/setup-rust@ede6de059f8046a5e236c94046823e2af11ca670 # v1.2.2\n with:\n cache-base: main\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n - name: Run doc command\n run: cargo documentation\n\n codegen:\n name: Codegen\n runs-on: depot-ubuntu-24.04-arm-16\n steps:\n - name: Checkout PR branch\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - name: Free Disk Space\n uses: ./.github/actions/free-disk-space\n - name: Install toolchain\n uses: moonrepo/setup-rust@ede6de059f8046a5e236c94046823e2af11ca670 # v1.2.2\n with:\n cache-base: main\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n - name: Run the grammar codegen\n run: cargo codegen grammar\n - name: Run the analyzer codegen\n run: cargo codegen analyzer\n - name: Run the configuration codegen\n run: cargo codegen-configuration\n - name: Run the schema codegen\n run: cargo codegen-schema\n - name: Run the bindings codegen\n run: cargo codegen-bindings\n - name: Run the migrate codegen\n run: cargo codegen-migrate\n - name: Check for git diff\n run: |\n if [[ `git status --porcelain` ]]; then\n git status\n git diff\n exit 1\n fi\n | dataset_sample\yaml\biomejs_biome\.github\workflows\pull_request.yml | pull_request.yml | YAML | 5,574 | 0.8 | 0.011111 | 0.011696 | vue-tools | 162 | 2024-07-19T16:03:19.939987 | GPL-3.0 | false | e2eca169ea705659c4f04f76c2c4f67d |
# Jobs run on pull request in js folders\nname: Pull request JS\non:\n pull_request:\n branches:\n - main\n paths: # Only run when changes are made to js code\n - 'packages/@biomejs/**'\n - 'packages/aria-data/**'\n - 'packages/tailwindcss-config-analyzer/**'\n - 'package.json'\n - 'pnpm-lock.yaml'\n\n# Cancel jobs when the PR is updated\nconcurrency:\n group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}\n cancel-in-progress: true\n\nenv:\n RUST_LOG: info\n RUST_BACKTRACE: 1\n\njobs:\n format-js:\n name: Check JS Files\n runs-on: depot-ubuntu-24.04-arm-16\n steps:\n - name: Checkout repository\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - name: Free Disk Space\n uses: ./.github/actions/free-disk-space\n - name: Cache pnpm modules\n uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3\n with:\n path: ~/.pnpm-store\n key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}\n restore-keys: |\n ${{ runner.os }}-\n - uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0\n - name: Run Biome CI check\n run: |\n pnpm i\n pnpm run ci\n | dataset_sample\yaml\biomejs_biome\.github\workflows\pull_request_js.yml | pull_request_js.yml | YAML | 1,271 | 0.8 | 0 | 0.05 | node-utils | 576 | 2023-10-05T18:07:04.836208 | Apache-2.0 | false | 50c0882679af3c89fa3ddb19af0d5c70 |
# Jobs run on pull request for Node.js APIs\nname: Pull request Node.js\non:\n pull_request:\n branches:\n - main\n paths: # Only run when changes are made to Rust crates or Node.js packages\n - "crates/**"\n - "packages/@biomejs/**"\n - "Cargo.toml"\n - "Cargo.lock"\n - "package.json"\n - "pnpm-lock.yaml"\n - "rust-toolchain.toml"\n - ".github/workflows/pull_request_node.yml"\n\n# Cancel jobs when the PR is updated\nconcurrency:\n group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}\n cancel-in-progress: true\n\nenv:\n RUST_LOG: info\n RUST_BACKTRACE: 1\n\njobs:\n test-node-api:\n name: Test Node.js API\n runs-on: depot-ubuntu-24.04-arm-16\n steps:\n - name: Checkout PR branch\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - name: Free Disk Space\n uses: ./.github/actions/free-disk-space\n - name: Install toolchain\n uses: moonrepo/setup-rust@ede6de059f8046a5e236c94046823e2af11ca670 # v1.2.2\n with:\n cache-target: release\n cache-base: main\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n - name: Build main binary\n run: cargo build -p biome_cli --release\n - name: Install Node.js\n uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0\n with:\n node-version: 20\n - name: Cache pnpm modules\n uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3\n with:\n path: ~/.pnpm-store\n key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}\n restore-keys: |\n ${{ runner.os }}-\n - uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0\n - name: Install wasm-pack\n run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh\n\n - name: Build TypeScript code\n # We use the `*-dev` builds below because release builds take very long.\n # The main difference is that release builds run `wasm-opt`, which is\n # responsible for the majority of the time of these builds, but regular\n # PRs of ours don't influence that process anyway, so it feels like a\n # waste of time to run on every PR. It does mean that if `wasm-opt`\n # breaks something, we'll discover it later, possibly when creating a\n # prerelease.\n run: |\n pnpm --filter @biomejs/backend-jsonrpc i\n pnpm --filter @biomejs/backend-jsonrpc run build\n pnpm --filter @biomejs/js-api run build:wasm-bundler-dev\n pnpm --filter @biomejs/js-api run build:wasm-node-dev\n pnpm --filter @biomejs/js-api run build:wasm-web-dev\n pnpm --filter @biomejs/js-api i\n pnpm --filter @biomejs/js-api run build\n - name: Run JS tests\n run: |\n pnpm --filter @biomejs/backend-jsonrpc run test:ci\n pnpm --filter @biomejs/js-api run test:ci\n | dataset_sample\yaml\biomejs_biome\.github\workflows\pull_request_node.yml | pull_request_node.yml | YAML | 2,980 | 0.8 | 0.038462 | 0.121622 | python-kit | 995 | 2024-03-17T01:11:44.792640 | BSD-3-Clause | false | 4db8f6f8488db0b844e983487d4192b8 |
name: Release\n\non:\n push:\n branches:\n - main\n\nconcurrency: ${{ github.workflow }}-${{ github.ref }}\n\npermissions:\n actions: write\n contents: write\n pull-requests: write\n\njobs:\n changesets:\n name: Release\n runs-on: depot-ubuntu-24.04-arm-16\n steps:\n - name: Checkout Repo\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n\n - name: Setup Node.js 20.x\n uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0\n with:\n node-version: 22.14.0\n\n - name: Install pnpm\n run: |\n npm install -g corepack\n corepack enable\n pnpm --version\n\n - name: Install dependencies\n run: pnpm install\n\n - name: Create Release Pull Request\n uses: changesets/action@06245a4e0a36c064a573d4150030f5ec548e4fcc # v1.4.10\n with:\n version: pnpm run version\n commit: "ci: release"\n title: "ci: release"\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n\n # Retrieve version of `@biomejs/biome` and `@biomejs/js-api`\n version:\n runs-on: depot-ubuntu-24.04-arm-16\n needs: changesets\n if: needs.changesets.outputs.hasChangesets == 'false' && github.head_ref == 'changeset-release/main'\n outputs:\n cli-version: ${{ env.cli-version }}\n js-api-version: ${{ env.cli-js-api-version }}\n\n steps:\n - name: Check CLI version changes\n uses: EndBug/version-check@36ff30f37c7deabe56a30caa043d127be658c425 # v2.1.5\n id: cli-version-changed\n with:\n diff-search: true\n file-name: packages/@biomejs/biome/package.json\n\n - name: Check JS API version changes\n uses: EndBug/version-check@36ff30f37c7deabe56a30caa043d127be658c425 # v2.1.5\n id: js-api-version-changed\n with:\n diff-search: true\n file-name: packages/@biomejs/js-api/package.json\n\n - name: Set Biome Version as Environment Variable\n run: |\n echo "cli-version=${{ steps.cli-version-changed.outputs.version }}" >> $GITHUB_ENV\n echo "js-api-version=${{ steps.js-api-version-changed.outputs.version }}" >> $GITHUB_ENV\n\n # Building jobs\n\n build-binaries:\n needs: version\n if: needs.cli-version-changed.outputs.changed == 'true'\n strategy:\n matrix:\n include:\n - os: depot-windows-2022\n target: x86_64-pc-windows-msvc\n code-target: win32-x64\n - os: depot-windows-2022\n target: aarch64-pc-windows-msvc\n code-target: win32-arm64\n - os: depot-ubuntu-22.04\n target: x86_64-unknown-linux-gnu\n code-target: linux-x64\n - os: depot-ubuntu-22.04-arm\n target: aarch64-unknown-linux-gnu\n code-target: linux-arm64\n - os: depot-ubuntu-22.04\n target: x86_64-unknown-linux-musl\n code-target: linux-x64-musl\n - os: depot-ubuntu-22.04-arm\n target: aarch64-unknown-linux-musl\n code-target: linux-arm64-musl\n - os: depot-macos-14\n target: x86_64-apple-darwin\n code-target: darwin-x64\n - os: depot-macos-14\n target: aarch64-apple-darwin\n code-target: darwin-arm64\n\n name: Package ${{ matrix.code-target }}\n runs-on: ${{ matrix.os }}\n\n steps:\n - name: Checkout repository\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n\n - name: Install Node.js\n uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0\n with:\n node-version: 20\n\n - name: Install Rust toolchain\n run: rustup target add ${{ matrix.target }}\n\n - name: Install arm64 toolchain\n if: matrix.code-target == 'linux-arm64' || matrix.code-target == 'linux-arm64-musl'\n run: |\n sudo apt-get update\n sudo apt-get install -y gcc-aarch64-linux-gnu\n\n - name: Install musl toolchain\n if: matrix.code-target == 'linux-x64-musl' || matrix.code-target == 'linux-arm64-musl'\n run: |\n sudo apt-get update\n sudo apt-get install -y musl-tools\n\n - name: Audit crates.io dependencies\n if: matrix.code-target == 'linux-x64'\n run: cargo audit\n\n - name: Set jemalloc page size for linux-arm64\n if: matrix.code-target == 'linux-arm64'\n run: |\n echo "JEMALLOC_SYS_WITH_LG_PAGE=16" >> $GITHUB_ENV\n\n # Build the CLI binary\n - name: Build binaries\n run: cargo build -p biome_cli --release --target ${{ matrix.target }}\n env:\n CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc\n CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER: aarch64-linux-gnu-gcc\n # Strip all debug symbols from the resulting binaries\n RUSTFLAGS: "-C strip=symbols -C codegen-units=1"\n # Inline the version of the npm package in the CLI binary\n BIOME_VERSION: ${{ env.cli-version }}\n\n # Copy the CLI binary and rename it to include the name of the target platform\n - name: Copy CLI binary\n if: matrix.os == 'windows-2022'\n run: |\n mkdir dist\n cp target/${{ matrix.target }}/release/biome.exe ./dist/biome-${{ matrix.code-target }}.exe\n - name: Copy CLI binary\n if: matrix.os != 'windows-2022'\n run: |\n mkdir dist\n cp target/${{ matrix.target }}/release/biome ./dist/biome-${{ matrix.code-target }}\n\n # Upload the CLI binary as a build artifact\n - name: Upload CLI artifact\n uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2\n with:\n name: cli-${{ matrix.target }}\n path: ./dist/biome-*\n if-no-files-found: error\n\n build-wasm:\n name: Build WASM\n runs-on: depot-ubuntu-24.04-arm-16\n needs: version\n if: needs.cli-version-changed.outputs.changed == 'true'\n steps:\n - name: Checkout repository\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n\n - name: Install wasm-pack\n run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh\n\n - name: Build WASM module for bundlers\n run: wasm-pack build --out-dir ../../packages/@biomejs/wasm-bundler --target bundler --release --scope biomejs crates/biome_wasm\n - name: Build WASM module for node.js\n run: wasm-pack build --out-dir ../../packages/@biomejs/wasm-nodejs --target nodejs --release --scope biomejs crates/biome_wasm\n - name: Build WASM module for the web\n run: wasm-pack build --out-dir ../../packages/@biomejs/wasm-web --target web --release --scope biomejs crates/biome_wasm\n\n - name: Upload WASM artifact\n uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2\n with:\n name: wasm-${{ matrix.target }}\n path: |\n ./packages/@biomejs/wasm-bundler\n ./packages/@biomejs/wasm-nodejs\n ./packages/@biomejs/wasm-web\n if-no-files-found: error\n\n build-js-api:\n name: Package JavaScript APIs\n runs-on: depot-ubuntu-24.04-arm-16\n needs: version\n if: needs.js-api-version-changed.outputs.changed == 'true'\n steps:\n - name: Checkout repository\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n\n - name: Install Node.js\n uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0\n with:\n node-version: 20\n\n - name: Install wasm-pack\n run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh\n\n - name: Cache pnpm modules\n uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3\n with:\n path: ~/.pnpm-store\n key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}\n restore-keys: |\n ${{ runner.os }}-\n - uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0\n\n - name: Compile backends\n run: |\n pnpm --filter @biomejs/js-api run build:wasm-bundler\n pnpm --filter @biomejs/js-api run build:wasm-node\n pnpm --filter @biomejs/js-api run build:wasm-web\n pnpm --filter @biomejs/backend-jsonrpc i\n pnpm --filter @biomejs/backend-jsonrpc run build\n\n - name: Build package\n run: |\n pnpm --filter @biomejs/js-api i\n pnpm --filter @biomejs/js-api run build\n\n - name: Upload JS API artifact\n uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2\n with:\n name: js-api\n path: |\n ./packages/@biomejs/js-api/dist\n if-no-files-found: error\n\n # Publishing jobs\n\n publish-cli:\n name: Publish\n runs-on: depot-ubuntu-24.04-arm-16\n needs:\n - build-binaries\n - build-wasm\n environment: npm-publish\n permissions:\n contents: write\n id-token: write\n steps:\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n\n - name: Download CLI artifacts\n uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1\n with:\n pattern: cli-*\n merge-multiple: true\n - name: Download WASM artifacts\n uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1\n with:\n pattern: wasm-*\n merge-multiple: true\n path: packages/@biomejs\n\n - name: Install Node.js\n uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0\n with:\n node-version: 20\n registry-url: 'https://registry.npmjs.org'\n\n - name: Generate npm packages\n run: node packages/@biomejs/biome/scripts/generate-packages.mjs\n\n - name: Publish npm packages as latest\n run: for package in packages/@biomejs/*; do if [ $package != "packages/@biomejs/js-api" ]; then npm publish $package --tag latest --access public --provenance; fi; done\n env:\n NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}\n\n - name: Upload assets to the latest tag\n run: |\n files=$(ls biome-* | tr '\n' ' ')\n gh release upload @biomejs/biome@${{ env.cli-version }} $files\n\n publish-js-api:\n name: Publish\n runs-on: depot-ubuntu-24.04-arm-16\n needs: build-js-api\n environment: npm-publish\n permissions:\n contents: write\n id-token: write\n steps:\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n\n - name: Download package artifact\n uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1\n with:\n name: js-api\n path: packages/@biomejs/js-api/dist\n\n - name: Install Node.js\n uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0\n with:\n node-version: 20\n registry-url: 'https://registry.npmjs.org'\n - name: Publish npm package as latest\n run: npm publish packages/@biomejs/js-api --tag latest --access public --provenance\n env:\n NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}\n | dataset_sample\yaml\biomejs_biome\.github\workflows\release.yml | release.yml | YAML | 11,218 | 0.8 | 0.059006 | 0.028986 | node-utils | 275 | 2024-04-29T20:50:57.586718 | Apache-2.0 | false | c1a8ba810c120241f422d44029143dd8 |
# To keep it as emergency workflow until preview, beta and changesets releases are stable\nname: Release CLI\non:\n workflow_dispatch:\n\njobs:\n check:\n name: Check version\n runs-on: depot-ubuntu-24.04-arm-16\n outputs:\n version: ${{ env.version }}\n steps:\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n\n - name: Check nightly status\n id: nightly\n if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'\n run: echo "nightly=true" >> $GITHUB_ENV\n\n - name: Check version changes\n uses: EndBug/version-check@36ff30f37c7deabe56a30caa043d127be658c425 # v2.1.5\n id: version\n with:\n diff-search: true\n file-name: packages/@biomejs/biome/package.json\n\n - name: Set version name\n if: steps.version.outputs.changed == 'true'\n run: |\n echo "Version change found! New version: ${{ steps.version.outputs.version }} (${{ steps.version.outputs.version_type }})"\n echo "version=${{ steps.version.outputs.version }}" >> $GITHUB_ENV\n\n - name: Set prerelease status\n if: env.nightly == 'true'\n run: |\n echo "prerelease=true" >> $GITHUB_ENV\n echo "version=$(node packages/@biomejs/biome/scripts/update-nightly-version.mjs)" >> $GITHUB_ENV\n\n build:\n strategy:\n matrix:\n include:\n - os: depot-windows-2022\n target: x86_64-pc-windows-msvc\n code-target: win32-x64\n - os: depot-windows-2022\n target: aarch64-pc-windows-msvc\n code-target: win32-arm64\n - os: depot-ubuntu-22.04\n target: x86_64-unknown-linux-gnu\n code-target: linux-x64\n - os: depot-ubuntu-22.04-arm\n target: aarch64-unknown-linux-gnu\n code-target: linux-arm64\n - os: depot-ubuntu-22.04\n target: x86_64-unknown-linux-musl\n code-target: linux-x64-musl\n - os: depot-ubuntu-22.04-arm\n target: aarch64-unknown-linux-musl\n code-target: linux-arm64-musl\n - os: depot-macos-14\n target: x86_64-apple-darwin\n code-target: darwin-x64\n - os: depot-macos-14\n target: aarch64-apple-darwin\n code-target: darwin-arm64\n\n name: Package ${{ matrix.code-target }}\n runs-on: ${{ matrix.os }}\n\n needs: check\n if: needs.check.outputs.version_changed == 'true' || needs.check.outputs.nightly == 'true'\n env:\n version: ${{ needs.check.outputs.version }}\n outputs:\n version: ${{ env.version }}\n prerelease: ${{ needs.check.outputs.prerelease }}\n\n steps:\n - name: Checkout repository\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n\n - name: Install Node.js\n uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0\n with:\n node-version: 20\n\n - name: Install Rust toolchain\n run: rustup target add ${{ matrix.target }}\n\n - name: Install arm64 toolchain\n if: matrix.code-target == 'linux-arm64' || matrix.code-target == 'linux-arm64-musl'\n run: |\n sudo apt-get update\n sudo apt-get install -y gcc-aarch64-linux-gnu\n\n - name: Install musl toolchain\n if: matrix.code-target == 'linux-x64-musl' || matrix.code-target == 'linux-arm64-musl'\n run: |\n sudo apt-get update\n sudo apt-get install -y musl-tools\n\n - name: Audit crates.io dependencies\n if: matrix.code-target == 'linux-x64'\n run: cargo audit\n\n - name: Set jemalloc page size for linux-arm64\n if: matrix.code-target == 'linux-arm64'\n run: |\n echo "JEMALLOC_SYS_WITH_LG_PAGE=16" >> $GITHUB_ENV\n\n # Build the CLI binary\n - name: Build binaries\n run: cargo build -p biome_cli --release --target ${{ matrix.target }}\n env:\n CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc\n CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER: aarch64-linux-gnu-gcc\n # Strip all debug symbols from the resulting binaries\n RUSTFLAGS: "-C strip=symbols -C codegen-units=1"\n # Inline the version of the npm package in the CLI binary\n BIOME_VERSION: ${{ env.version }}\n\n # Copy the CLI binary and rename it to include the name of the target platform\n - name: Copy CLI binary\n if: matrix.os == 'windows-2022'\n run: |\n mkdir dist\n cp target/${{ matrix.target }}/release/biome.exe ./dist/biome-${{ matrix.code-target }}.exe\n - name: Copy CLI binary\n if: matrix.os != 'windows-2022'\n run: |\n mkdir dist\n cp target/${{ matrix.target }}/release/biome ./dist/biome-${{ matrix.code-target }}\n\n # Upload the CLI binary as a build artifact\n - name: Upload CLI artifact\n uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2\n with:\n name: cli-${{ matrix.target }}\n path: ./dist/biome-*\n if-no-files-found: error\n\n build-wasm:\n name: Build WASM\n runs-on: depot-ubuntu-24.04-arm-16\n needs: check\n steps:\n - name: Checkout repository\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n\n - name: Install wasm-pack\n run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh\n\n - name: Build WASM module for bundlers\n run: wasm-pack build --out-dir ../../packages/@biomejs/wasm-bundler --target bundler --release --scope biomejs crates/biome_wasm\n - name: Build WASM module for node.js\n run: wasm-pack build --out-dir ../../packages/@biomejs/wasm-nodejs --target nodejs --release --scope biomejs crates/biome_wasm\n - name: Build WASM module for the web\n run: wasm-pack build --out-dir ../../packages/@biomejs/wasm-web --target web --release --scope biomejs crates/biome_wasm\n\n - name: Upload WASM artifact\n uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2\n with:\n name: wasm-${{ matrix.target }}\n path: |\n ./packages/@biomejs/wasm-bundler\n ./packages/@biomejs/wasm-nodejs\n ./packages/@biomejs/wasm-web\n if-no-files-found: error\n\n publish:\n name: Publish\n runs-on: depot-ubuntu-24.04-arm-16\n needs:\n - build\n - build-wasm\n environment: npm-publish\n permissions:\n contents: write\n id-token: write\n steps:\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n\n - name: Download CLI artifacts\n uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1\n with:\n pattern: cli-*\n merge-multiple: true\n - name: Download WASM artifacts\n uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1\n with:\n pattern: wasm-*\n merge-multiple: true\n path: packages/@biomejs\n\n - name: Install Node.js\n uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0\n with:\n node-version: 20\n registry-url: 'https://registry.npmjs.org'\n\n - name: Set release infos\n if: needs.build.outputs.prerelease == 'true'\n run: node packages/@biomejs/biome/scripts/update-nightly-version.mjs\n - name: Generate npm packages\n run: node packages/@biomejs/biome/scripts/generate-packages.mjs\n\n - name: Publish npm packages as latest\n run: for package in packages/@biomejs/*; do if [ $package != "packages/@biomejs/js-api" ]; then npm publish $package --tag latest --access public --provenance; fi; done\n if: needs.build.outputs.prerelease != 'true'\n env:\n NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}\n - name: Publish npm packages as nightly\n run: for package in packages/@biomejs/*; do if [ $package != "packages/@biomejs/js-api" ]; then npm publish $package --tag nightly --access public --provenance; fi; done\n if: needs.build.outputs.prerelease == 'true'\n env:\n NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}\n\n - name: Extract changelog\n run: |\n bash scripts/print-changelog.sh ${{ needs.build.outputs.version }} >| ${{ github.workspace }}/RELEASE_NOTES\n - name: Create GitHub release and tag\n uses: softprops/action-gh-release@da05d552573ad5aba039eaac05058a918a7bf631 # v2.2.2\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n with:\n name: CLI v${{ needs.build.outputs.version }}\n tag_name: cli/v${{ needs.build.outputs.version }}\n draft: false\n prerelease: ${{ needs.build.outputs.prerelease == 'true' }}\n body_path: ${{ github.workspace }}/RELEASE_NOTES\n files: |\n biome-*\n fail_on_unmatched_files: true\n generate_release_notes: true\n | dataset_sample\yaml\biomejs_biome\.github\workflows\release_cli.yml | release_cli.yml | YAML | 9,011 | 0.8 | 0.097872 | 0.028986 | awesome-app | 899 | 2025-03-03T02:46:17.248639 | Apache-2.0 | false | 2a84c6d848b8b6c4a30094b88d568e6b |
# To keep it as emergency workflow until preview, beta and changesets releases are stable\nname: Release JavaScript API\non:\n workflow_dispatch:\n\njobs:\n check:\n name: Check version\n runs-on: depot-ubuntu-24.04-arm-16\n outputs:\n version: ${{ env.version }}\n prerelease: ${{ env.prerelease }}\n nightly: ${{ env.nightly }}\n version_changed: ${{ steps.version.outputs.changed }}\n steps:\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n\n - name: Check nightly status\n id: nightly\n if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'\n run: echo "nightly=true" >> $GITHUB_ENV\n\n - name: Check version changes\n uses: EndBug/version-check@36ff30f37c7deabe56a30caa043d127be658c425 # v2.1.5\n if: env.nightly != 'true'\n id: version\n with:\n diff-search: true\n file-name: packages/@biomejs/js-api/package.json\n\n - name: Set version name\n run: echo "version=${{ steps.version.outputs.version }}" >> $GITHUB_ENV\n\n - name: Check prerelease status\n id: prerelease\n if: env.nightly == 'true'\n run: echo "prerelease=true" >> $GITHUB_ENV\n\n - name: Check version status\n if: steps.version.outputs.changed == 'true'\n run: 'echo "Version change found! New version: ${{ steps.version.outputs.version }} (${{ steps.version.outputs.version_type }})"'\n\n build:\n name: Package JavaScript APIs\n runs-on: depot-ubuntu-24.04-arm-16\n\n needs: check\n if: needs.check.outputs.version_changed == 'true' || needs.check.outputs.nightly == 'true'\n outputs:\n version: ${{ env.version }}\n prerelease: ${{ env.prerelease }}\n\n steps:\n - name: Checkout repository\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n\n - name: Install Node.js\n uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0\n with:\n node-version: 20\n\n - name: Install wasm-pack\n run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh\n\n - name: Cache pnpm modules\n uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3\n with:\n path: ~/.pnpm-store\n key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}\n restore-keys: |\n ${{ runner.os }}-\n - uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0\n\n - name: Set release infos\n if: needs.check.outputs.prerelease == 'true'\n run: |\n echo "prerelease=true" >> $GITHUB_ENV\n node packages/@biomejs/js-api/scripts/update-nightly-version.mjs >> $GITHUB_ENV\n - name: Set release infos\n if: needs.check.outputs.prerelease != 'true'\n run: |\n echo "prerelease=false" >> $GITHUB_ENV\n echo "version=${{ needs.check.outputs.version }}" >> $GITHUB_ENV\n\n - name: Compile backends\n run: |\n pnpm --filter @biomejs/js-api run build:wasm-bundler\n pnpm --filter @biomejs/js-api run build:wasm-node\n pnpm --filter @biomejs/js-api run build:wasm-web\n pnpm --filter @biomejs/backend-jsonrpc i\n pnpm --filter @biomejs/backend-jsonrpc run build\n\n - name: Build package\n run: |\n pnpm --filter @biomejs/js-api i\n pnpm --filter @biomejs/js-api run build\n\n - name: Upload JS API artifact\n uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2\n with:\n name: js-api\n path: |\n ./packages/@biomejs/js-api/dist\n if-no-files-found: error\n\n publish:\n name: Publish\n runs-on: depot-ubuntu-24.04-arm-16\n needs: build\n environment: npm-publish\n permissions:\n contents: write\n id-token: write\n steps:\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n\n - name: Download package artifact\n uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1\n with:\n name: js-api\n path: packages/@biomejs/js-api/dist\n\n - name: Install Node.js\n uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0\n with:\n node-version: 20\n registry-url: 'https://registry.npmjs.org'\n\n - name: Set release infos\n if: needs.build.outputs.prerelease == 'true'\n run: node packages/@biomejs/js-api/scripts/update-nightly-version.mjs\n\n - name: Publish npm package as latest\n run: npm publish packages/@biomejs/js-api --tag latest --access public --provenance\n if: needs.build.outputs.prerelease != 'true'\n env:\n NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}\n - name: Publish npm package as nightly\n run: npm publish packages/@biomejs/js-api --tag nightly --access public --provenance\n if: needs.build.outputs.prerelease == 'true'\n env:\n NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}\n\n - name: Extract changelog\n run: |\n bash scripts/print-changelog.sh ${{ needs.build.outputs.version }} >| ${{ github.workspace }}/RELEASE_NOTES\n - name: Create GitHub release and tag\n uses: softprops/action-gh-release@da05d552573ad5aba039eaac05058a918a7bf631 # v2.2.2\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n with:\n name: JavaScript APIs v${{ needs.build.outputs.version }}\n tag_name: js-api/v${{ needs.build.outputs.version }}\n draft: false\n prerelease: ${{ needs.build.outputs.prerelease == 'true' }}\n body_path: ${{ github.workspace }}/RELEASE_NOTES\n generate_release_notes: true\n | dataset_sample\yaml\biomejs_biome\.github\workflows\release_js_api.yml | release_js_api.yml | YAML | 5,761 | 0.8 | 0.070064 | 0.007407 | node-utils | 900 | 2023-10-19T23:01:01.066606 | Apache-2.0 | false | 24e94c90512c1645d436af086f76f8aa |
name: Repository dispatch on main\non:\n workflow_dispatch:\n push:\n branches:\n - main\n\npermissions:\n contents: read\n actions: write\n\nenv:\n BIOME_WEBSITE_REPO: biomejs/website\n BIOME_PUSH_ON_MAIN_EVENT_TYPE: biome-push-on-main-event\n WASM_PACK_CACHE_KEY: wasm-pack-cache\n\nconcurrency:\n group: ${{ github.workflow }}-${{ github.ref }}\n cancel-in-progress: true\n\njobs:\n build-wasm:\n name: Build @biomejs/wasm-web\n runs-on: depot-ubuntu-24.04-arm-16\n steps:\n - name: Checkout repository\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n\n - name: Warm up wasm-pack cache\n id: cache-restore\n uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3\n with:\n path: |\n ./target\n ./packages/@biomejs/wasm-web\n key: ${{ env.WASM_PACK_CACHE_KEY }}\n\n - name: Install wasm-pack\n run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh\n\n - name: Build WASM module for the web\n run: wasm-pack build --out-dir ../../packages/@biomejs/wasm-web --target web --profiling --scope biomejs crates/biome_wasm\n\n # https://github.com/actions/cache/issues/342\n - name: Clear old wasm-pack cache\n if: ${{ steps.cache-restore.outputs.cache-hit }}\n run: |\n gh extension install actions/gh-actions-cache\n gh actions-cache delete ${{ env.WASM_PACK_CACHE_KEY }} --confirm\n env:\n GH_TOKEN: ${{ github.token }}\n continue-on-error: true\n\n - name: Save new wasm-pack cache\n uses: actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3\n with:\n path: |\n ./target\n ./packages/@biomejs/wasm-web\n key: ${{ env.WASM_PACK_CACHE_KEY }}\n\n - name: Install pnpm\n # workaround for the issue https://github.com/actions/setup-node/issues/1222\n run: npm i -g --force corepack && corepack enable\n\n - name: Setup node\n uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0\n with:\n node-version: 20\n cache: pnpm\n\n - name: Update package.json\n working-directory: packages/@biomejs/wasm-web\n run: |\n npm pkg set name='@biomejs/wasm-web'\n npm pkg set version='0.0.0-rev.${{ github.event.head_commit.id }}'\n\n - name: Publish\n working-directory: packages/@biomejs/wasm-web\n run: pnpx pkg-pr-new publish\n\n repository-dispatch:\n name: Repository dispatch\n needs: build-wasm\n runs-on: depot-ubuntu-24.04-arm-16\n steps:\n - name: Dispatch event on push\n if: ${{ github.event_name == 'push' }}\n uses: peter-evans/repository-dispatch@ff45666b9427631e3450c54a1bcbee4d9ff4d7c0 # v3\n with:\n token: ${{ secrets.BIOME_REPOSITORY_DISPATCH }}\n repository: ${{ env.BIOME_WEBSITE_REPO }}\n event-type: ${{ env.BIOME_PUSH_ON_MAIN_EVENT_TYPE }}\n client-payload: '{"event": ${{ toJson(github.event) }}}'\n # For testing only, the payload is mocked\n - name: Dispatch event on workflow dispatch\n if: ${{ github.event_name == 'workflow_dispatch' }}\n uses: peter-evans/repository-dispatch@ff45666b9427631e3450c54a1bcbee4d9ff4d7c0 # v3\n with:\n token: ${{ secrets.BIOME_REPOSITORY_DISPATCH }}\n repository: ${{ env.BIOME_WEBSITE_REPO }}\n event-type: ${{ env.BIOME_PUSH_ON_MAIN_EVENT_TYPE }}\n client-payload: '{"event": {"head_commit": {"id": "${{ env.GITHUB_SHA }}"}}}'\n | dataset_sample\yaml\biomejs_biome\.github\workflows\repository_dispatch.yml | repository_dispatch.yml | YAML | 3,587 | 0.8 | 0.048544 | 0.033708 | react-lib | 89 | 2023-11-16T06:59:35.033984 | Apache-2.0 | false | 7b403e2cad0254bfc54b362c76110774 |
# This configuration file was automatically generated by Gitpod.\n# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml)\n# and commit this file to your remote git repository to share the goodness with others.\n\n# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart\n\nimage:\n file: .gitpod.Dockerfile\n\nports:\n - name: Bloop Web Interface\n port: 7878\n protocol: http\n\nadditionalRepositories:\n - url: https://github.com/bloopai/answer-api\n checkoutLocation: answer-api\n\ntasks:\n - name: Backend\n init: |\n nix run nixpkgs#cachix use bloopai\n\n # Setup Git LFS\n git lfs pull model\n git lfs install --skip-smudge\n\n # Cache build artifacts\n nix develop -c cargo build --locked --features=ee-cloud --bin bleep\n nix develop -c npm i\n\n # this is working around a gitpod bug\n # https://github.com/gitpod-io/gitpod/issues/524\n find target -exec stat --format='%.Y %n' {} + > /workspace/.ts\n command: |\n while read -r ts file; do touch -d "@${ts}" "${file}"; done < /workspace/.ts\n\n bloop_url=$(gp url 7878 | sed 's;https://;;')\n\n git reset --hard\n\n nix develop -c cargo watch -w server -- \\n cargo run --locked --features=ee-cloud --bin bleep -- \\n \\n --qdrant-url http://localhost:6334 \\n --answer-api-url http://localhost:7879 \\n --model-dir /workspace/bloop/model \\n --frontend-dist /workspace/bloop/client/dist \\n --instance-domain $bloop_url \\n --bloop-instance-secret "$BLOOP_INSTANCE_SECRET" \\n --bloop-instance-org "$BLOOP_INSTANCE_ORG" \\n --cognito-config-url https://cloud-auth-staging.bloop.ai/bloop_config\n\n openMode: split-left\n\n - name: Frontend\n command: |\n nix develop -c npm i\n nix develop -c npm run build-web -- -- --watch --minify false\n openMode: split-right\n\n - name: Qdrant\n command: |\n nix run nixpkgs#qdrant -- --config-path qdrant/config.yaml\n openMode: tab-after\n\n - name: answer-api\n command: |\n cd /workspace/answer-api\n nix run /workspace/answer-api\n openMode: tab-after\n\ngithub:\n prebuilds:\n # enable for the default branch (defaults to true)\n master: true\n # enable for all branches in this repo (defaults to false)\n branches: true\n # enable for pull requests coming from this repo (defaults to true)\n pullRequests: true\n # enable for pull requests coming from forks (defaults to false)\n pullRequestsFromForks: false\n # add a check to pull requests (defaults to true)\n addCheck: true\n # add a "Review in Gitpod" button as a comment to pull requests (defaults to false)\n addComment: true\n # add a "Review in Gitpod" button to the pull request's description (defaults to false)\n addBadge: true\n | dataset_sample\yaml\BloopAI_bloop\.gitpod.yml | .gitpod.yml | YAML | 2,917 | 0.8 | 0.056818 | 0.208333 | vue-tools | 138 | 2025-04-28T17:57:30.703802 | GPL-3.0 | false | c2ef453255f195e989208e30e3c82f0d |
version: '3'\nservices:\n qdrant:\n image: "qdrant/qdrant"\n restart: always\n container_name: qdrant\n ports:\n - "6333:6333"\n - "6334:6334"\n expose:\n - 6333\n - 6334\n - 6335\n volumes:\n - ./qdrant_data:/qdrant_data\n bloop-app:\n image: bloop-app\n restart: on-failure\n command: --qdrant-url=http://qdrant:6334\n depends_on:\n qdrant:\n condition: service_started\n ports:\n - "7878:7878"\n expose:\n - 7878\n build:\n dockerfile: "./Dockerfile"\n args:\n - OPENAI_API_KEY\n - GITHUB_ACCESS_TOKEN | dataset_sample\yaml\BloopAI_bloop\docker-compose.yml | docker-compose.yml | YAML | 591 | 0.8 | 0 | 0 | react-lib | 689 | 2024-02-23T02:31:55.105838 | Apache-2.0 | false | 539256095eac7e382d610b000754b7e9 |
name: Build Bloop container with latest PR commit tag on build command\n\non:\n issue_comment:\n types: [created]\n\njobs:\n debug:\n runs-on: ubuntu-latest\n steps:\n - name: $github\n run: echo "$GITHUB_CONTEXT"\n env:\n GITHUB_CONTEXT: ${{ toJson(github) }}\n\n permissions:\n runs-on: ubuntu-latest\n name: Validate user is the member of BloopAI organization\n if: github.event.issue.pull_request && contains(github.event.comment.body, '/build')\n outputs:\n is-member: ${{ steps.membership.outputs.is-member }}\n steps:\n - name: Validation\n id: membership\n env:\n ACTOR: ${{ github.triggering_actor }}\n run: |\n members=$(curl -L \\n -H "Accept: application/vnd.github+json" \\n -H "Authorization: Bearer ${{ secrets.BLOOP_DEVOPS_PAT}}"\\n -H "X-GitHub-Api-Version: 2022-11-28" \\n https://api.github.com/orgs/BloopAI/members | jq -r ".[] .login")\n for member in $(echo ${members}); do \n if [[ $member = $ACTOR ]]; then \n echo "is-member=true" >> $GITHUB_OUTPUT\n fi\n done\n\n build_tag:\n runs-on: ubuntu-latest\n name: Run container build on comment\n needs: [permissions]\n if: github.event.issue.pull_request && contains(github.event.comment.body, '/build') && needs.permissions.outputs.is-member == 'true'\n outputs:\n tag: build-${{ steps.comment-branch.outputs.head_sha }}\n ref: ${{ steps.comment-branch.outputs.head_ref }}\n steps:\n - name: Get PR branch\n uses: xt0rted/pull-request-comment-branch@v1\n id: comment-branch\n\n - name: Checkout PR branch\n uses: actions/checkout@v4\n with:\n ref: ${{ steps.comment-branch.outputs.head_ref }}\n\n build_and_push:\n uses: BloopAI/workflows/.github/workflows/build-container.yml@main\n if: needs.permissions.outputs.is-member == 'true'\n needs: [permissions, build_tag]\n with:\n repository: bloop\n tag: ${{ needs.build_tag.outputs.tag }}\n runner: ubuntu-latest\n secrets:\n awsRegion: ${{ secrets.AWS_REGION }}\n awsAccountID: ${{ secrets.AWS_ACCOUNT_ID }}\n slackBuildWebhook: ${{ secrets.SLACK_BUILD_WEBHOOK }}\n build-args: |\n SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}\n SENTRY_RELEASE_VERSION=${{ needs.build_tag.outputs.tag }}\n\n report_status:\n runs-on: ubuntu-latest\n name: Report status of the build\n needs: [permissions, build_tag, build_and_push]\n if: always() && needs.permissions.outputs.is-member == 'true'\n steps:\n - name: pr\n id: pr\n run: |\n PR_NUMBER=$(echo $GITHUB_REF | awk 'BEGIN { FS = "/" } ; { print $3 }')\n echo "number=${PR_NUMBER}" >> ${GITHUB_OUTPUT}\n\n - name: Comment failure build\n if: ${{ contains(needs.*.result, 'failure') }}\n uses: thollander/actions-comment-pull-request@v2\n with:\n message: |\n :red_circle: Bloop container with `${{ needs.build_tag.outputs.tag }}` tag failed!\n :link: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}\n pr_number: ${{ steps.pr.outputs.number }}\n\n - name: Comment success build\n if: ${{ !contains(needs.*.result, 'failure') }}\n uses: thollander/actions-comment-pull-request@v2\n with:\n message: |\n :green_circle: Bloop container with `${{ needs.build_tag.outputs.tag }}` tag is ready!\n :link: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}\n pr_number: ${{ steps.pr.outputs.number }}\n | dataset_sample\yaml\BloopAI_bloop\.github\workflows\build-on-pr-command.yml | build-on-pr-command.yml | YAML | 3,650 | 0.8 | 0.079208 | 0 | python-kit | 520 | 2024-05-05T16:29:13.106252 | Apache-2.0 | false | 2bd45548f89c49df827f53d44bfcbe23 |
name: Build and push docker container\non: workflow_dispatch\n\njobs:\n build_and_push:\n uses: BloopAI/workflows/.github/workflows/build-container.yml@main\n with:\n repository: bloop\n tag: build-${{ github.sha }}\n runner: ubuntu-latest\n secrets:\n awsRegion: ${{ secrets.AWS_REGION }}\n awsAccountID: ${{ secrets.AWS_ACCOUNT_ID }}\n slackBuildWebhook: ${{ secrets.SLACK_BUILD_WEBHOOK }}\n build-args: |\n SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}\n SENTRY_RELEASE_VERSION=${{ github.sha }}\n\n validate_helm:\n uses: BloopAI/reusable-workflows/.github/workflows/validate-helm-chart.yml@main\n with:\n path: helm/bloop\n secrets:\n slackBuildWebhook: ${{ secrets.SLACK_BUILD_WEBHOOK }}\n | dataset_sample\yaml\BloopAI_bloop\.github\workflows\build-on-pr.yml | build-on-pr.yml | YAML | 755 | 0.7 | 0 | 0 | vue-tools | 449 | 2024-12-01T07:26:13.597288 | GPL-3.0 | false | 04245704317568657de7c4aaae1f189d |
name: Build&Push bloop docker container image with release tag\non:\n release:\n types: [published, prereleased]\n\njobs:\n build_and_push:\n uses: BloopAI/workflows/.github/workflows/build-container.yml@main\n with:\n repository: bloop\n tag: ${{ github.event.release.tag_name }}\n runner: ubuntu-latest\n secrets:\n awsRegion: ${{ secrets.AWS_REGION }}\n awsAccountID: ${{ secrets.AWS_ACCOUNT_ID }}\n slackBuildWebhook: ${{ secrets.SLACK_BUILD_WEBHOOK }}\n build-args: |\n SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}\n SENTRY_RELEASE_VERSION=${{ github.event.release.tag_name }}\n | dataset_sample\yaml\BloopAI_bloop\.github\workflows\build-on-release.yml | build-on-release.yml | YAML | 633 | 0.7 | 0 | 0 | react-lib | 96 | 2024-05-25T07:01:32.030401 | GPL-3.0 | false | ee65587525ebd8ec5f756e0cf37a90fa |
name: Dependency matrix \n\non: \n workflow_dispatch:\n pull_request: \n branches: [main] \n paths: \n - "flake.nix" \n - "flake.lock" \n - ".github/workflows/dependencies.yml" \n\njobs: \n qdrant-rustup: \n strategy: \n fail-fast: false \n matrix: \n package: [ qdrant ] \n target: [ \n x86_64-unknown-linux-gnu, \n x86_64-apple-darwin, \n aarch64-apple-darwin, \n x86_64-pc-windows-msvc\n ] \n\n include: \n - target: x86_64-unknown-linux-gnu \n os: ubuntu-20.04\n cross: false\n\n - target: x86_64-apple-darwin \n os: macos-11\n cross: false\n\n - target: aarch64-apple-darwin \n os: macos-11\n cross: true\n \n - target: x86_64-pc-windows-msvc\n os: windows-latest\n cross: false\n\n runs-on: ${{ matrix.os }} \n steps: \n - name: Install Rust stable \n uses: dtolnay/rust-toolchain@stable\n with: \n toolchain: 1.74.0\n target: ${{ matrix.target }} \n\n - name: Install Protoc\n uses: arduino/setup-protoc@v2\n with:\n repo-token: ${{ secrets.GITHUB_TOKEN }}\n\n - name: Build qdrant \n env: \n VERSION: 1.7.1\n run: | \n cargo install --target ${{ matrix.target }} --git https://github.com/qdrant/qdrant --tag v${{ env.VERSION }} --root . qdrant \n - name: Upload binaries \n uses: actions/upload-artifact@v3 \n with: \n name: "${{ matrix.package }}_${{ matrix.target }}" \n path: bin \n | dataset_sample\yaml\BloopAI_bloop\.github\workflows\dependencies.yml | dependencies.yml | YAML | 1,610 | 0.8 | 0 | 0 | node-utils | 875 | 2024-08-16T21:40:07.228069 | GPL-3.0 | false | ebabadb6588785906a766dfb7776331f |
name: dummy\n\non:\n pull_request:\n paths-ignore:\n - ".github/workflows/server**"\n - ".github/workflows/client**"\n - "apps/desktop/**"\n - "server/**"\n - "client/**"\n\njobs:\n test:\n runs-on: ubuntu-latest\n steps:\n - run: 'echo "No checks required" '\n fmt-clippy-build:\n runs-on: ubuntu-latest\n steps:\n - run: 'echo "No checks required" '\n build-client:\n runs-on: ubuntu-latest\n steps:\n - run: 'echo "No checks required" '\n | dataset_sample\yaml\BloopAI_bloop\.github\workflows\dummy.yml | dummy.yml | YAML | 482 | 0.95 | 0 | 0 | python-kit | 980 | 2024-09-02T10:07:08.750488 | MIT | false | f3059443295a536d7d2d76efa96fb9d6 |
name: Tauri Release\n\non:\n workflow_dispatch:\n pull_request:\n paths:\n - ".github/workflows/tauri-release.yml"\n release:\n types: [published]\n\nconcurrency:\n group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}\n cancel-in-progress: true\n\njobs:\n build-and-sign-tauri:\n strategy:\n fail-fast: false\n matrix:\n target:\n [x86_64-unknown-linux-gnu, x86_64-apple-darwin, aarch64-apple-darwin]\n\n include:\n - target: x86_64-unknown-linux-gnu\n name: ubuntu-20.04\n\n - target: x86_64-apple-darwin\n name: macos-11\n\n - target: aarch64-apple-darwin\n name: macos-11\n\n\n runs-on: ${{ matrix.name }}\n env:\n ORT_LIB_LOCATION: ${{ github.workspace }}/lib/${{ matrix.target }}/onnxruntime\n\n steps:\n - if: matrix.name == 'ubuntu-20.04'\n uses: pierotofy/set-swap-space@v1.0\n with:\n swap-size-gb: 10\n\n - name: Checkout code\n uses: actions/checkout@v4\n with:\n token: ${{ secrets.GITHUB_TOKEN }}\n\n - name: Create LFS file list\n run: git lfs ls-files --long | cut -d ' ' -f1 | sort > .lfs-assets-id\n\n - name: LFS Cache\n uses: actions/cache@v3\n with:\n path: .git/lfs/objects\n key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }}\n restore-keys: |\n ${{ runner.os }}-lfs-\n\n - name: Git LFS Pull\n run: git lfs install && git lfs pull\n\n - name: Install Protoc\n uses: arduino/setup-protoc@v2\n with:\n repo-token: ${{ secrets.GITHUB_TOKEN }}\n\n - if: matrix.target == 'x86_64-unknown-linux-gnu'\n run: sudo apt-get update && sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf\n\n - name: Use Node.js\n uses: actions/setup-node@v3\n with:\n node-version: 16\n cache: "npm"\n\n - name: Install app dependencies\n run: npm ci\n\n - name: Install Rust stable\n uses: dtolnay/rust-toolchain@stable\n with:\n toolchain: 1.73.0\n target: ${{ matrix.target }}\n\n - name: Check if keys exist\n env:\n analytics_key: ${{ secrets.ANALYTICS_BE_WRITE_KEY_PROD }}\n analytics_fe_key: ${{ secrets.ANALYTICS_FE_WRITE_KEY_PROD }}\n sentry_dsn: ${{ secrets.SENTRY_DSN_BE }}\n sentry_dsn_fe: ${{ secrets.SENTRY_DSN_FE }}\n if: ${{ env.analytics_fe_key == '' || env.sentry_dsn_fe == '' || env.analytics_key == '' || env.sentry_dsn == ''}}\n run: exit 1\n\n - name: Set environment\n run: echo "{\"analytics_key\":\"${{ secrets.ANALYTICS_BE_WRITE_KEY_PROD }}\",\"analytics_data_plane\":\"${{ secrets.ANALYTICS_DATA_PLANE_URL }}\",\"sentry_dsn_fe\":\"${{ secrets.SENTRY_DSN_FE }}\",\"sentry_dsn\":\"${{ secrets.SENTRY_DSN_BE }}\",\"analytics_key_fe\":\"${{ secrets.ANALYTICS_FE_WRITE_KEY_PROD }}\",\"answer_api_url\":\"${{ secrets.ANSWER_API_URL }}\",\"cognito_userpool_id\":\"${{ secrets.COGNITO_USERPOOL_ID }}\",\"cognito_client_id\":\"${{ secrets.COGNITO_CLIENT_ID }}\",\"cognito_auth_url\":\"${{ secrets.COGNITO_AUTH_URL }}\",\"cognito_mgmt_url\":\"${{ secrets.COGNITO_MGMT_URL }}\",\"cognito_config_url\":\"${{ secrets.COGNITO_CONFIG_URL }}\"}" > apps/desktop/src-tauri/config/config.json\n\n - name: Check environment is set\n run: du -h apps/desktop/src-tauri/config/config.json\n\n - name: Set providerShortName in tauri.conf.json\n uses: jossef/action-set-json-field@v2.1\n with:\n file: apps/desktop/src-tauri/tauri.conf.json\n field: tauri.bundle.macOS.providerShortName\n value: ${{ secrets.MAC_PROVIDER_SHORT_NAME }}\n\n - name: Set signingIdentity in tauri.conf.json\n uses: jossef/action-set-json-field@v2.1\n with:\n file: apps/desktop/src-tauri/tauri.conf.json\n field: tauri.bundle.macOS.signingIdentity\n value: ${{ secrets.APPLE_SIGNING_IDENTITY }}\n\n - name: Create Signing API Key\n if: matrix.name == 'macos-11'\n run: echo "${{ secrets.APPLE_API_KEY_CONTENT }}" > apiKey.p8\n\n - name: Remove onnxruntime from aarch64-apple-darwin builds\n if: matrix.target == 'aarch64-apple-darwin'\n uses: jossef/action-set-json-field@v2.1\n with:\n file: apps/desktop/src-tauri/tauri.conf.json\n field: tauri.bundle.macOS.frameworks\n value: '[]'\n parse_json: true\n\n - name: get release version\n id: release-version\n run: echo "RELEASE_VERSION=$(cat apps/desktop/src-tauri/tauri.conf.json | jq '.package.version' | tr -d '"')" >> "$GITHUB_OUTPUT"\n\n - uses: tauri-apps/tauri-action@cb58ba3f65bd456ee564376585a8400bf0b71f47\n env:\n NODE_OPTIONS: "--max-old-space-size=4096"\n ORT_LIB_LOCATION: ${{ github.workspace }}/lib/${{ matrix.target }}/onnxruntime\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n ENABLE_CODE_SIGNING: ${{ secrets.APPLE_CERTIFICATE }}\n APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}\n APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}\n APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}\n APPLE_API_ISSUER: ${{ secrets.APPLE_API_ISSUER }}\n APPLE_API_KEY: ${{ secrets.APPLE_API_KEY }}\n APPLE_API_KEY_PATH: /Users/runner/work/bloop/bloop/apiKey.p8\n TAURI_BIN_PATH: apps/desktop/src-tauri/bin\n TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}\n TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}\n SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}\n SENTRY_RELEASE_VERSION: ${{ steps.release-version.outputs.RELEASE_VERSION }}\n with:\n args: -- --target "${{ matrix.target }}" -v\n\n - name: Upload artifacts\n uses: actions/upload-artifact@v3\n with:\n name: ${{ matrix.target }}-app\n path: target/${{ matrix.target }}/release/bundle\n retention-days: 5\n\n - name: Setup Sentry CLI\n uses: mathieu-bour/setup-sentry-cli@v1.3.0\n with:\n token: ${{ secrets.SENTRY_AUTH_TOKEN }}\n organization: ${{ secrets.SENTRY_ORG }}\n project: ${{ secrets.SENTRY_PROJECT }}\n version: 2.21.2\n\n - name: Create Sentry release\n run: |\n sentry-cli releases new "${{ steps.release-version.outputs.RELEASE_VERSION }}"\n sentry-cli releases set-commits "${{ steps.release-version.outputs.RELEASE_VERSION }}" --auto\n\n - name: (MacOS) Upload source maps to Sentry\n if: matrix.name == 'macos-11'\n run: |\n sentry-cli debug-files upload \\n --log-level debug \\n --include-sources \\n target/${{ matrix.target }}/release/bloop.dSYM\n\n - name: Rename tar.gz in macos\n if: matrix.name == 'macos-11'\n run: |\n new_filename="bloop_${{ steps.release-version.outputs.RELEASE_VERSION }}_$(echo ${{ matrix.target }} | cut -d '-' -f 1).app.tar.gz"\n mv "target/${{ matrix.target }}/release/bundle/macos/bloop.app.tar.gz" "target/${{ matrix.target }}/release/bundle/macos/${new_filename}"\n\n - name: List files\n run: ls -R target/${{ matrix.target }}/release/bundle\n\n - name: Generate Changelog\n run: |\n release_version="${{ steps.release-version.outputs.RELEASE_VERSION }}"\n sed "s/VERSION/${release_version}/g" release_description_template.txt > new_description.txt\n cat new_description.txt\n\n - name: Upload release assets\n uses: softprops/action-gh-release@v1\n if: startsWith(github.ref, 'refs/tags/v')\n with:\n files: |\n target/${{ matrix.target }}/release/bundle/deb/*.deb\n target/${{ matrix.target }}/release/bundle/appimage/*.AppImage\n target/${{ matrix.target }}/release/bundle/appimage/*.tar.gz\n target/${{ matrix.target }}/release/bundle/dmg/*.dmg\n target/${{ matrix.target }}/release/bundle/macos/*.tar.gz\n | dataset_sample\yaml\BloopAI_bloop\.github\workflows\tauri-release.yml | tauri-release.yml | YAML | 8,078 | 0.8 | 0.044118 | 0 | python-kit | 481 | 2024-05-18T23:56:04.645575 | GPL-3.0 | false | 362a1c8bfe38a261f0a841fc79604c44 |
github_checks:\n annotations: false\n\ncoverage:\n status:\n project:\n default:\n threshold: 5% # allow 5% coverage variance\n\n patch: off\n | dataset_sample\yaml\boa-dev_boa\.github\codecov.yml | codecov.yml | YAML | 152 | 0.8 | 0 | 0 | react-lib | 685 | 2025-02-22T04:23:09.755553 | Apache-2.0 | false | 244cb9fd71ad42b9e049771138aa4188 |
version: 2\nupdates:\n - package-ecosystem: github-actions\n directory: /\n schedule:\n interval: weekly\n groups:\n ci-dependencies:\n applies-to: version-updates\n patterns: ["*"]\n update-types:\n - "minor"\n - "patch"\n - package-ecosystem: cargo\n directory: /\n schedule:\n interval: weekly\n groups:\n rust-dependencies:\n applies-to: version-updates\n patterns: ["*"]\n update-types:\n - "minor"\n - "patch"\n - package-ecosystem: cargo\n directory: /tests/fuzz/\n schedule:\n interval: weekly\n groups:\n fuzz-dependencies:\n applies-to: version-updates\n patterns: ["*"]\n update-types:\n - "minor"\n - "patch"\n | dataset_sample\yaml\boa-dev_boa\.github\dependabot.yml | dependabot.yml | YAML | 752 | 0.7 | 0 | 0 | react-lib | 609 | 2024-04-17T11:26:29.882714 | BSD-3-Clause | false | 5f3720f1d266970cd439a398fc520545 |
# .github/release.yml\n\nchangelog:\n exclude:\n authors:\n - dependabot\n categories:\n - title: Feature Enhancements\n labels:\n - enhancement\n - title: Bug Fixes\n labels:\n - bug\n - title: Internal Improvements\n labels:\n - Internal\n - memory\n - title: Other Changes\n labels:\n - "*"\n | dataset_sample\yaml\boa-dev_boa\.github\release.yml | release.yml | YAML | 352 | 0.8 | 0 | 0.052632 | vue-tools | 510 | 2025-01-08T23:15:11.009686 | MIT | false | f8ebb10e1a6132c838f256b8ca251878 |
blank_issues_enabled: false\ncontact_links:\n - name: Matrix space\n url: https://matrix.to/#/#boa:matrix.org\n about: Please ask and answer questions here.\n | dataset_sample\yaml\boa-dev_boa\.github\ISSUE_TEMPLATE\config.yml | config.yml | YAML | 160 | 0.8 | 0 | 0 | python-kit | 613 | 2024-07-28T23:46:40.568326 | GPL-3.0 | false | 1d1f7e8ba9222e22c7efc8b044033860 |
name: Nightly Build\npermissions:\n "contents": "write"\n\n# Schedule this workflow to run at midnight every day\non:\n schedule:\n - cron: "0 0 * * *"\n workflow_dispatch:\n\njobs:\n build:\n strategy:\n matrix:\n include:\n - target: x86_64-unknown-linux-gnu\n os: ubuntu-latest\n binary_extension: ""\n - target: x86_64-apple-darwin\n os: macos-13\n binary_extension: ""\n - target: aarch64-apple-darwin\n os: macos-14\n - target: x86_64-pc-windows-msvc\n os: windows-latest\n binary_extension: ".exe"\n runs-on: ${{ matrix.os }}\n steps:\n - name: Checkout repository\n uses: actions/checkout@v4\n\n - name: Install Rust toolchain\n uses: dtolnay/rust-toolchain@stable\n with:\n toolchain: stable\n targets: ${{ matrix.target }}\n\n - name: Build\n run: cargo build --target ${{ matrix.target }} --release --locked --bin boa\n\n - name: Upload binaries to release\n uses: svenstaro/upload-release-action@v2\n with:\n repo_token: ${{ secrets.GITHUB_TOKEN }}\n file: target/${{ matrix.target }}/release/boa${{ matrix.binary_extension }}\n asset_name: boa-${{ matrix.target }}${{ matrix.binary_extension }}\n tag: refs/tags/nightly\n overwrite: true\n prerelease: true\n | dataset_sample\yaml\boa-dev_boa\.github\workflows\nightly_build.yml | nightly_build.yml | YAML | 1,397 | 0.8 | 0 | 0.022727 | awesome-app | 662 | 2024-07-07T23:20:53.910950 | BSD-3-Clause | false | 9961ec46ede5ed60394728ae9008b442 |
name: Benchmarks\n\non:\n pull_request:\n branches:\n - main\n - releases/**\n\nconcurrency:\n group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}\n cancel-in-progress: true\n\njobs:\n runBenchmark:\n if: contains(github.event.pull_request.labels.*.name, 'run-benchmark')\n name: run benchmark\n runs-on: ubuntu-latest\n timeout-minutes: 120\n steps:\n - name: Checkout repository\n uses: actions/checkout@v4\n with:\n fetch-depth: 0\n\n - name: Install Rust toolchain\n uses: dtolnay/rust-toolchain@stable\n with:\n toolchain: stable\n\n - name: Cache cargo\n uses: actions/cache@v4\n with:\n path: |\n target\n ~/.cargo/git\n ~/.cargo/registry\n key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}\n - uses: boa-dev/criterion-compare-action@v3.2.4\n with:\n token: ${{ secrets.GITHUB_TOKEN }}\n branchName: ${{ github.base_ref }}\n cwd: ./core/engine\n | dataset_sample\yaml\boa-dev_boa\.github\workflows\pull_request.yml | pull_request.yml | YAML | 1,051 | 0.8 | 0.02381 | 0 | python-kit | 620 | 2024-01-16T12:09:58.854793 | GPL-3.0 | false | 8d40411fac46baa2aa1c5739577de392 |
name: Publish Release\non:\n release:\n types: [published]\n\njobs:\n publish:\n name: Publish crates\n runs-on: ubuntu-latest\n timeout-minutes: 60\n steps:\n - name: Set environment\n env:\n W_FLAGS: ${{ (github.ref == 'refs/heads/main' || github.base_ref == 'main') && '-Dwarnings' || '' }}\n # Setting `RUSTFLAGS` overrides any flags set on .cargo/config.toml, so we need to\n # set the target flags instead which are cumulative.\n # Track https://github.com/rust-lang/cargo/issues/5376\n run: |\n target=$(rustc -vV | awk '/^host/ { print $2 }' | tr [:lower:] [:upper:] | tr '-' '_')\n echo "CARGO_TARGET_${target}_RUSTFLAGS=$W_FLAGS" >> $GITHUB_ENV\n - name: Checkout repository\n uses: actions/checkout@v4\n\n - name: Install Rust toolchain\n uses: dtolnay/rust-toolchain@stable\n with:\n toolchain: stable\n\n - name: Install cargo-workspaces\n run: cargo install cargo-workspaces\n\n - name: Release\n env:\n CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}\n PATCH: ${{ github.run_number }}\n shell: bash\n run: |\n git config --global user.email "runner@gha.local"\n git config --global user.name "Github Action"\n cargo workspaces publish \\n --from-git \\n --yes \\n --no-git-commit \\n skip\n\n npm_publish:\n name: Publish NPM package (wasm)\n runs-on: ubuntu-latest\n timeout-minutes: 60\n steps:\n - name: Checkout repository\n uses: actions/checkout@v4\n\n - name: Install Rust toolchain\n uses: dtolnay/rust-toolchain@stable\n with:\n toolchain: stable\n targets: wasm32-unknown-unknown\n\n - name: Install wasm-pack\n uses: jetli/wasm-pack-action@v0.4.0\n with:\n version: 'latest'\n\n - name: Build boa_wasm\n run: wasm-pack build --scope boa-dev ./ffi/wasm\n\n - name: Set-up Node.js\n uses: actions/setup-node@v4\n with:\n node-version: "20"\n\n - name: Set-up npm config for publishing\n run: npm config set -- '//registry.npmjs.org/:_authToken' "${{ secrets.NPM_TOKEN }}"\n\n - name: Publish to npm\n run: npm publish ./ffi/wasm/pkg --access=public\n\n release-binaries:\n name: Publish binaries\n needs: publish\n strategy:\n fail-fast: false\n matrix:\n build: [linux, macos-amd64, macos-arm64, win-msvc]\n include:\n - build: linux\n os: ubuntu-20.04\n target: x86_64-unknown-linux-gnu\n binary_extension: ""\n - build: macos-amd64\n os: macos-13\n target: x86_64-apple-darwin\n binary_extension: ""\n - build: macos-arm64\n os: macos-14\n target: aarch64-apple-darwin\n binary_extension: ""\n - build: win-msvc\n os: windows-2019\n target: x86_64-pc-windows-msvc\n binary_extension: ".exe"\n runs-on: ${{ matrix.os }}\n steps:\n - name: Checkout repository\n uses: actions/checkout@v4\n\n - name: Install Rust toolchain\n uses: dtolnay/rust-toolchain@stable\n with:\n toolchain: stable\n targets: ${{ matrix.target }}\n\n - name: Build\n run: cargo build --target ${{ matrix.target }} --verbose --release --locked --bin boa\n\n - name: Upload binaries to release\n uses: svenstaro/upload-release-action@v2\n with:\n repo_token: ${{ secrets.GITHUB_TOKEN }}\n file: target/${{ matrix.target }}/release/boa${{ matrix.binary_extension }}\n asset_name: boa-${{ matrix.target }}${{ matrix.binary_extension }}\n tag: ${{ github.ref }}\n | dataset_sample\yaml\boa-dev_boa\.github\workflows\release.yml | release.yml | YAML | 3,741 | 0.8 | 0.00813 | 0.027778 | vue-tools | 828 | 2025-01-24T04:16:14.484647 | Apache-2.0 | false | 734a1074f8ac026cfb3fed6bdf98326a |
name: Continuous integration\n\non:\n pull_request:\n branches:\n - main\n - releases/**\n push:\n branches:\n - main\n - releases/**\n merge_group:\n types: [checks_requested]\n\nconcurrency:\n group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}\n cancel-in-progress: true\n\nenv:\n W_FLAGS: ${{ (github.ref == 'refs/heads/main' || github.base_ref == 'main') && '-D warnings' || '' }}\n\njobs:\n coverage:\n name: Coverage\n runs-on: ubuntu-latest\n timeout-minutes: 60\n if: ${{ github.ref == 'refs/heads/main' || github.base_ref == 'main' }}\n steps:\n - name: Set environment\n # Setting `RUSTFLAGS` overrides any flags set on .cargo/config.toml, so we need to\n # set the target flags instead which are cumulative.\n # Track https://github.com/rust-lang/cargo/issues/5376\n run: |\n target=$(rustc -vV | awk '/^host/ { print $2 }' | tr [:lower:] [:upper:] | tr '-' '_')\n echo "CARGO_TARGET_${target}_RUSTFLAGS=$W_FLAGS" >> $GITHUB_ENV\n - name: Checkout repository\n uses: actions/checkout@v4\n\n - name: Install Rust toolchain\n uses: dtolnay/rust-toolchain@stable\n\n - uses: Swatinem/rust-cache@v2\n with:\n key: tarpaulin\n - name: Install cargo-tarpaulin\n uses: baptiste0928/cargo-install@v3.3.0\n with:\n crate: cargo-tarpaulin\n\n - name: Run tarpaulin\n run: cargo tarpaulin --workspace --features annex-b,intl_bundled,experimental --ignore-tests --engine llvm --out xml\n\n - name: Upload to codecov.io\n uses: codecov/codecov-action@v5\n\n tests:\n name: Test\n runs-on: ${{ matrix.os }}\n timeout-minutes: 60\n env:\n RUSTUP_WINDOWS_PATH_ADD_BIN: 1\n # TODO: Make a small Rust tool that does this\n CARGO_TARGET_X86_64_PC_WINDOWS_MSVC_RUSTFLAGS: ${{ (github.ref == 'refs/heads/main' || github.base_ref == 'main') && '-D warnings' || '' }}\n CARGO_TARGET_AARCH64_APPLE_DARWIN_RUSTFLAGS: ${{ (github.ref == 'refs/heads/main' || github.base_ref == 'main') && '-D warnings' || '' }}\n CARGO_TARGET_X86_64_APPLE_DARWIN_RUSTFLAGS: ${{ (github.ref == 'refs/heads/main' || github.base_ref == 'main') && '-D warnings' || '' }}\n strategy:\n matrix:\n os:\n - macos-13\n - macos-14\n - windows-latest\n steps:\n - name: Checkout repository\n uses: actions/checkout@v4\n\n - name: Install Rust toolchain\n uses: dtolnay/rust-toolchain@stable\n with:\n toolchain: stable\n\n - uses: Swatinem/rust-cache@v2\n - name: Build tests\n run: cargo test --no-run --profile ci\n # this order is faster according to rust-analyzer\n - name: Build\n run: cargo build --all-targets --quiet --profile ci --features annex-b,intl_bundled,experimental\n - name: Install latest nextest\n uses: taiki-e/install-action@nextest\n - name: Test with nextest\n run: cargo nextest run --profile ci --cargo-profile ci --features annex-b,intl_bundled,experimental\n - name: Test docs\n run: cargo test --doc --profile ci --features annex-b,intl_bundled,experimental\n\n msrv:\n name: MSRV\n runs-on: ubuntu-latest\n timeout-minutes: 60\n steps:\n - name: Set environment\n run: |\n target=$(rustc -vV | awk '/^host/ { print $2 }' | tr [:lower:] [:upper:] | tr '-' '_')\n echo "CARGO_TARGET_${target}_RUSTFLAGS=$W_FLAGS" >> $GITHUB_ENV\n - name: Checkout repository\n uses: actions/checkout@v4\n\n # Get the rust_version from the Cargo.toml\n - name: Get rust_version\n id: rust_version\n run: echo "rust_version=$(grep '^rust-version' Cargo.toml | cut -d' ' -f3 | tr -d '"')" >> $GITHUB_OUTPUT\n\n - name: Install Rust toolchain\n uses: dtolnay/rust-toolchain@stable\n with:\n toolchain: ${{ steps.rust_version.outputs.rust_version }}\n\n - name: Check compilation\n run: cargo check --all-features --all-targets\n\n fmt:\n name: Formatting\n runs-on: ubuntu-latest\n timeout-minutes: 60\n steps:\n - name: Set environment\n run: |\n target=$(rustc -vV | awk '/^host/ { print $2 }' | tr [:lower:] [:upper:] | tr '-' '_')\n echo "CARGO_TARGET_${target}_RUSTFLAGS=$W_FLAGS" >> $GITHUB_ENV\n - name: Checkout repository\n uses: actions/checkout@v4\n\n - name: Install Rust toolchain\n uses: dtolnay/rust-toolchain@stable\n with:\n toolchain: stable\n components: rustfmt\n\n - name: Format (rustfmt)\n run: cargo fmt --all --check\n\n clippy:\n name: Lint\n runs-on: ubuntu-latest\n timeout-minutes: 60\n steps:\n - name: Set environment\n run: |\n target=$(rustc -vV | awk '/^host/ { print $2 }' | tr [:lower:] [:upper:] | tr '-' '_')\n echo "CARGO_TARGET_${target}_RUSTFLAGS=$W_FLAGS" >> $GITHUB_ENV\n - name: Checkout repository\n uses: actions/checkout@v4\n\n - name: Install Rust toolchain\n uses: dtolnay/rust-toolchain@stable\n with:\n toolchain: stable\n components: clippy\n\n - uses: Swatinem/rust-cache@v2\n with:\n key: clippy\n\n - name: Install cargo-workspaces\n run: cargo install cargo-workspaces\n\n - name: Clippy (All features)\n run: cargo workspaces exec cargo clippy --all-features --all-targets\n - name: Clippy (No features)\n run: cargo workspaces exec cargo clippy --no-default-features --all-targets\n - name: Clippy (Intl)\n run: cargo clippy -p boa_engine --features intl\n - name: Clippy (Annex-B)\n run: cargo clippy -p boa_engine --features annex-b\n - name: Clippy (Experimental)\n run: cargo clippy -p boa_engine --features experimental\n\n docs:\n name: Documentation\n runs-on: ubuntu-latest\n timeout-minutes: 60\n env:\n RUSTDOCFLAGS: ${{ (github.ref == 'refs/heads/main' || github.base_ref == 'main') && '-D warnings' || '' }}\n steps:\n - name: Set environment\n run: |\n target=$(rustc -vV | awk '/^host/ { print $2 }' | tr [:lower:] [:upper:] | tr '-' '_')\n echo "CARGO_TARGET_${target}_RUSTFLAGS=$W_FLAGS" >> $GITHUB_ENV\n - name: Checkout repository\n uses: actions/checkout@v4\n\n - name: Install Rust toolchain\n uses: dtolnay/rust-toolchain@stable\n with:\n toolchain: stable\n\n - uses: Swatinem/rust-cache@v2\n with:\n key: docs\n - name: Generate documentation\n run: cargo doc -v --document-private-items --all-features\n\n build-fuzz:\n name: Fuzzing\n runs-on: ubuntu-latest\n timeout-minutes: 60\n steps:\n - name: Set environment\n run: |\n target=$(rustc -vV | awk '/^host/ { print $2 }' | tr [:lower:] [:upper:] | tr '-' '_')\n echo "CARGO_TARGET_${target}_RUSTFLAGS=$W_FLAGS" >> $GITHUB_ENV\n - name: Checkout repository\n uses: actions/checkout@v4\n\n - name: Install Rust toolchain\n uses: dtolnay/rust-toolchain@stable\n with:\n toolchain: stable\n\n - uses: Swatinem/rust-cache@v2\n with:\n key: build-fuzz\n\n - name: Install cargo-fuzz\n run: cargo install cargo-fuzz\n\n - name: Build fuzz\n run: cd tests/fuzz && cargo fuzz build -s none --dev\n\n build-run-examples:\n name: Build & run examples\n runs-on: ubuntu-latest\n timeout-minutes: 60\n steps:\n - name: Set environment\n run: |\n target=$(rustc -vV | awk '/^host/ { print $2 }' | tr [:lower:] [:upper:] | tr '-' '_')\n echo "CARGO_TARGET_${target}_RUSTFLAGS=$W_FLAGS" >> $GITHUB_ENV\n - name: Checkout repository\n uses: actions/checkout@v4\n\n - name: Install Rust toolchain\n uses: dtolnay/rust-toolchain@stable\n with:\n toolchain: stable\n\n - uses: Swatinem/rust-cache@v2\n with:\n key: build-run-examples\n\n - name: Install cargo-workspaces\n run: cargo install cargo-workspaces\n\n - name: Build (All features)\n run: cargo workspaces exec cargo build --all-features --all-targets --profile ci\n - name: Build (No features)\n run: cargo workspaces exec cargo build --no-default-features --all-targets --profile ci\n\n - name: Run examples\n run: |\n cd examples\n cargo run -p boa_examples --bin 2>&1 \\n | grep -E '^ ' \\n | xargs -n1 sh -c 'cargo run -p boa_examples --profile ci --bin $0 || exit 255'\n | dataset_sample\yaml\boa-dev_boa\.github\workflows\rust.yml | rust.yml | YAML | 8,531 | 0.8 | 0.003817 | 0.026667 | node-utils | 795 | 2024-04-02T20:29:24.761341 | MIT | false | 2bcc7a170405c77cc2cff018da26d407 |
name: Security audit\non:\n schedule:\n - cron: "0 0 * * *"\njobs:\n audit:\n runs-on: ubuntu-latest\n timeout-minutes: 60\n steps:\n - name: Checkout repository\n uses: actions/checkout@v4\n - uses: rustsec/audit-check@v2.0.0\n with:\n token: ${{ secrets.GITHUB_TOKEN }}\n | dataset_sample\yaml\boa-dev_boa\.github\workflows\security_audit.yml | security_audit.yml | YAML | 306 | 0.7 | 0 | 0 | node-utils | 729 | 2024-12-18T00:09:11.380906 | MIT | false | 276a4ec0a3a0622f5944d622c6340b09 |
name: Webassembly demo\n\non:\n pull_request:\n branches:\n - main\n - releases/**\n push:\n branches:\n - main\n - releases/**\n merge_group:\n types: [checks_requested]\n\nconcurrency:\n group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}\n cancel-in-progress: true\n\njobs:\n check_style:\n name: Check webassembly demo style\n runs-on: ubuntu-latest\n timeout-minutes: 60\n steps:\n - name: Checkout\n uses: actions/checkout@v4\n - name: Check code formatting\n run: npx prettier --check .\n\n build:\n name: Build webassembly demo\n runs-on: ubuntu-latest\n timeout-minutes: 60\n env:\n WASM_PACK_PATH: ~/.cargo/bin/wasm-pack\n steps:\n - name: Set environment\n env:\n W_FLAGS: ${{ (github.ref == 'refs/heads/main' || github.base_ref == 'main') && '-Dwarnings' || '' }}\n # Setting `RUSTFLAGS` overrides any flags set on .cargo/config.toml, so we need to\n # set the target flags instead which are cumulative.\n # Track https://github.com/rust-lang/cargo/issues/5376\n run: echo "CARGO_TARGET_WASM32_UNKNOWN_UNKNOWN_RUSTFLAGS=$W_FLAGS" >> $GITHUB_ENV\n - name: Checkout repository\n uses: actions/checkout@v4\n\n - name: Install Rust toolchain\n uses: dtolnay/rust-toolchain@stable\n with:\n toolchain: stable\n\n - uses: Swatinem/rust-cache@v2\n - name: Install wasm-pack\n uses: baptiste0928/cargo-install@v3.3.0\n with:\n crate: wasm-pack\n - name: Build Playground\n run: wasm-pack build ./ffi/wasm --verbose\n - name: Test (Chrome)\n run: wasm-pack test --headless --chrome ./ffi/wasm --verbose\n - name: Test (Firefox)\n run: wasm-pack test --headless --firefox ./ffi/wasm --verbose\n | dataset_sample\yaml\boa-dev_boa\.github\workflows\webassembly.yml | webassembly.yml | YAML | 1,816 | 0.8 | 0 | 0.053571 | node-utils | 132 | 2025-04-25T15:30:11.279136 | BSD-3-Clause | false | ea72a43e02091b74e2a96c9d10c408ae |
image: Visual Studio 2022\nconfiguration: Release\nplatform: x64\ninstall:\n - git submodule update --init\nbefore_build:\n - dotnet restore %APPVEYOR_BUILD_FOLDER%\Source\NETworkManager.sln\n - ps: |\n # Set the version based on the current date (e.g. 2024.4.27.0)\n $Date = Get-Date\n $VersionString = $Date.ToString("yyyy.M.d.0")\n \n Write-Host "Set NETworkManager version set to $VersionString"\n \n # Update assembly version\n $AssemblyVersionPattern = '\[assembly: AssemblyVersion\("(.*)"\)\]'\n $AssemblyFileVersionPattern = '\[assembly: AssemblyFileVersion\("(.*)"\)\]'\n\n $AssemblyFile = "$($env:APPVEYOR_BUILD_FOLDER)\Source\GlobalAssemblyInfo.cs"\n\n $AssemlbyContent = Get-Content -Path $AssemblyFile -Encoding utf8\n $AssemlbyContent = $AssemlbyContent -replace $AssemblyVersionPattern, "[assembly: AssemblyVersion(""$($VersionString)"")]"\n $AssemlbyContent = $AssemlbyContent -replace $AssemblyFileVersionPattern, "[assembly: AssemblyFileVersion(""$($VersionString)"")]"\n $AssemlbyContent | Set-Content -Path $AssemblyFile -Encoding utf8\n\n # Set setup version information\n $SetupVersionString = $Date.ToString("yy.M.d") # MSI only supports major.minor.build and 255 as highest value\n \n Write-Host "Set NETworkManager setup version set to $SetupVersionString"\n\n $SetupVersionPattern = '<\?define ProductVersion="(.*)" \?>'\n\n $SetupFile = ".\Source\NETworkManager.Setup\Package.wxs"\n\n $SetupContent = Get-Content -Path "$SetupFile" -Encoding utf8\n $SetupContent = $SetupContent -replace $SetupVersionPattern, "<?define ProductVersion=""$SetupVersionString"" ?>"\n $SetupContent | Set-Content -Path "$SetupFile" -Encoding utf8\n\nbuild_script:\n - dotnet build %APPVEYOR_BUILD_FOLDER%\Source\NETworkManager.sln --configuration Release --no-restore\n\nafter_build:\n - ps: |\n if($env:APPVEYOR_REPO_TAG -eq $false) {\n Write-Host "Release build is skipped because no tag was found!"\n return\n }\n\n # Build path\n $BuildPath = "$($env:APPVEYOR_BUILD_FOLDER)\Source\NETworkManager\bin\Release\net8.0-windows10.0.22621.0\win-x64"\n $SetupPath = "$($env:APPVEYOR_BUILD_FOLDER)\Source\NETworkManager.Setup\bin\x64\Release\en-US\NETworkManager.Setup.msi"\n $ArtifactsPath = "$($env:APPVEYOR_BUILD_FOLDER)\Artifacts"\n\n # Get version\n $Version = [System.Diagnostics.FileVersionInfo]::GetVersionInfo("$($BuildPath)\NETworkManager.exe").FileVersion\n\n # Cleanup build\n Get-ChildItem -Path "$BuildPath" -Recurse | Where-Object { $_.Name.EndsWith(".pdb") } | Remove-Item\n Remove-Item -Path "$($BuildPath)\WebView2Loader.dll"\n\n # Create release folder\n New-Item -Path "$ArtifactsPath" -ItemType Directory -Force | Out-Null\n\n # Create archive\n Compress-Archive -Path "$($BuildPath)\*" -DestinationPath "$($ArtifactsPath)\NETworkManager_$($Version)_Archive.zip"\n\n # Create portable\n New-Item -Path "$BuildPath" -Name "IsPortable.settings" -ItemType File | Out-Null\n Compress-Archive -Path "$($BuildPath)\*" -DestinationPath "$($ArtifactsPath)\NETworkManager_$($Version)_Portable.zip"\n Remove-Item -Path "$($BuildPath)\IsPortable.settings"\n\n # Copy setup\n Move-Item -Path "$SetupPath" -Destination "$($ArtifactsPath)\NETworkManager_$($Version)_Setup.msi"\n \n # Create artifacts archive for signing\n Compress-Archive -Path "$ArtifactsPath\*" -DestinationPath "$($ArtifactsPath).zip"\n\nartifacts:\n - path: 'Artifacts.zip'\ndeploy:\n - provider: Webhook\n url: https://app.signpath.io/API/v1/0a191750-608c-457a-a11d-8a5433ad6491/Integrations/AppVeyor?ProjectSlug=NETworkManager&SigningPolicySlug=release-signing&ArtifactConfigurationSlug=artifacts\n authorization:\n secure: PF6YBkp3Gg4c9TUX4HOzgjG5FeCzq9hYMCG5Zbs6xEL3jVuWe605D+Q/x1PKtK/q2nxUGzQIvOdiWbXMnUXWQg==\n on:\n APPVEYOR_REPO_TAG: true\n | dataset_sample\yaml\BornToBeRoot_NETworkManager\appveyor.yml | appveyor.yml | YAML | 3,919 | 0.8 | 0.023256 | 0.166667 | awesome-app | 921 | 2024-04-06T13:14:51.022393 | MIT | false | 58c52e71c5579ad02dfa497dc68bcd3f |
tasks:\n - name: Init Frontend\n before: cd ./frontend\n init: pnpm i\n command: pnpm dev\n - name: Init Backend\n init: curl -sSfL https://raw.githubusercontent.com/cosmtrek/air/master/install.sh | sh -s\n command: rm -fv .air/pgdata/postmaster.pid && ./bin/air -c scripts/.air.toml\n\n# List the ports to expose. Learn more https://www.gitpod.io/docs/config-ports/\nports:\n - port: 3000\n onOpen: open-preview\n - port: 8080\n onOpen: ignore\n | dataset_sample\yaml\bytebase_bytebase\.gitpod.yml | .gitpod.yml | YAML | 456 | 0.8 | 0 | 0.071429 | python-kit | 774 | 2024-03-18T17:49:46.747661 | GPL-3.0 | false | ca6f562c126e383f8bada55f1a07752d |
template: bb.sql-review.prod\nruleList:\n - type: naming.index.pk\n level: WARNING\n - type: naming.index.fk\n level: WARNING\n - type: naming.index.uk\n payload:\n format: "^idx_{{table}}_unique_{{column_list}}$"\n - type: column.no-null\n level: WARNING\n - type: table.no-foreign-key\n level: DISABLED\n | dataset_sample\yaml\bytebase_bytebase\sql-review-override.yml | sql-review-override.yml | YAML | 318 | 0.7 | 0 | 0 | python-kit | 814 | 2024-03-06T12:39:41.626768 | GPL-3.0 | false | 8f432902657431169731831697cae6be |
updates:\n - package-ecosystem: "github-actions"\n commit-message:\n prefix: "chore"\n directory: "/"\n schedule:\n interval: "monthly"\n\n - package-ecosystem: "gomod"\n commit-message:\n prefix: "chore"\n directory: "/"\n schedule:\n interval: "monthly"\n\n - package-ecosystem: "npm"\n commit-message:\n prefix: "chore"\n directory: "/frontend"\n schedule:\n interval: "monthly"\n\nversion: 2\n | dataset_sample\yaml\bytebase_bytebase\.github\dependabot.yml | dependabot.yml | YAML | 434 | 0.7 | 0 | 0 | react-lib | 592 | 2023-09-27T00:13:26.535517 | GPL-3.0 | false | 400bbc41681709d40711b05b35446bc5 |
enabled: true\n\n# Only check PR title\ntitleOnly: true\n\ntypes:\n - feat\n - fix\n - refactor\n - docs\n - style\n - test\n - chore\n - cherrypick\n | dataset_sample\yaml\bytebase_bytebase\.github\semantic.yml | semantic.yml | YAML | 144 | 0.8 | 0 | 0.083333 | react-lib | 471 | 2024-08-27T22:48:44.440091 | BSD-3-Clause | false | 0bdad41b5fdfc21fdc243858cd448ee0 |
name: Bug Report\ndescription: Create a report to help us improve\nlabels: [bug]\nbody:\n - type: markdown\n attributes:\n value: |\n If you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead.\n - type: input\n attributes:\n label: Provide the Bytebase version you are using\n description: |\n You can find the version in the footer of the Bytebase UI.\n validations:\n required: true\n - type: textarea\n attributes:\n label: Describe the bug\n description: |\n Briefly describe the problem you are having in a few paragraphs.\n validations:\n required: true\n - type: textarea\n attributes:\n label: Steps to reproduce\n description: |\n Provide the steps to reproduce the issue.\n placeholder: |\n 1. Go to '...'\n 3. Click on '....'\n 4. See error\n validations:\n required: true\n - type: textarea\n attributes:\n label: Expected behavior\n description: |\n Describe what you expect to happen.\n validations:\n required: true\n - type: input\n attributes:\n label: Provide the database you are using\n description: |\n Provide the database type and version (e.g. MySQL 8.0) you are using if related to a database operation.\n - type: textarea\n attributes:\n label: Additional context\n description: |\n Add any other context or screenshots about the feature request here.\n | dataset_sample\yaml\bytebase_bytebase\.github\ISSUE_TEMPLATE\bug_report.yml | bug_report.yml | YAML | 1,630 | 0.85 | 0.04 | 0 | awesome-app | 430 | 2023-10-20T00:04:06.267576 | Apache-2.0 | false | f02d0a8b159aba8e37de115fe7cc57b1 |
name: Feature Request\ndescription: Suggest an idea for this project\nlabels: [enhancement]\nbody:\n - type: markdown\n attributes:\n value: |\n Thanks for taking the time to suggest an idea for Bytebase!\n - type: textarea\n attributes:\n label: Is your feature request related to a problem?\n description: |\n A clear and concise description of what the problem is.\n placeholder: |\n I'm always frustrated when [...]\n validations:\n required: true\n - type: textarea\n attributes:\n label: Describe the solution you'd like\n description: |\n A clear and concise description of what you want to happen.\n validations:\n required: true\n - type: textarea\n attributes:\n label: Additional context\n description: Add any other context or screenshots about the feature request here.\n | dataset_sample\yaml\bytebase_bytebase\.github\ISSUE_TEMPLATE\feature_request.yml | feature_request.yml | YAML | 856 | 0.85 | 0.107143 | 0 | vue-tools | 5 | 2024-07-10T16:56:10.338313 | GPL-3.0 | false | f4467a2457e7e3e4ede2ae14bf40f30f |
name: Build push action image\n\non:\n workflow_dispatch:\n\njobs:\n docker:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n - name: Login to DockerHub\n uses: docker/login-action@v3\n with:\n username: ${{ secrets.DOCKERHUB_USERNAME }}\n password: ${{ secrets.DOCKERHUB_TOKEN }}\n - name: Build and push Docker image\n uses: docker/build-push-action@v5\n with:\n context: .\n file: scripts/Dockerfile.action\n push: true\n tags: bytebase/bytebase-action:latest\n | dataset_sample\yaml\bytebase_bytebase\.github\workflows\build-push-action-image.yml | build-push-action-image.yml | YAML | 564 | 0.7 | 0 | 0 | python-kit | 201 | 2025-01-24T17:11:29.623628 | Apache-2.0 | false | f15a0d189b63c0905da9e1a2fc56651f |
name: Build and push release image\n\non:\n push:\n branches:\n - 'release/*.*.*'\n\nconcurrency:\n group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}\n cancel-in-progress: true\n\njobs:\n build-release-image:\n runs-on: ubuntu-latest\n permissions:\n contents: read\n id-token: write\n steps:\n - uses: actions/checkout@v4\n - name: Extract build args\n # Extract version from branch name\n # Example: branch name `release/1.0.0` sets up env.IMAGE_VERSION=1.0.0\n run: |\n echo "IMAGE_VERSION=${GITHUB_REF_NAME#release/}" >> $GITHUB_ENV\n echo "VERSION=$(cat ./scripts/VERSION)" >> $GITHUB_ENV\n echo "GIT_COMMIT=$(git rev-parse HEAD)" >> $GITHUB_ENV\n - name: Login to DockerHub\n uses: docker/login-action@v3\n with:\n username: ${{ secrets.DOCKERHUB_USERNAME }}\n password: ${{ secrets.DOCKERHUB_TOKEN }}\n - uses: depot/setup-action@v1\n - name: Build and push\n id: bytebase_build\n uses: depot/build-push-action@v1\n with:\n context: .\n project: ${{ secrets.DEPOT_PROJECT}}\n token: ${{ secrets.DEPOT_TOKEN }}\n file: scripts/Dockerfile\n platforms: linux/amd64,linux/arm64\n push: true\n tags: |\n bytebase/bytebase:${{ env.IMAGE_VERSION }}\n build-args: |\n VERSION=${{ env.VERSION }}\n GIT_COMMIT=${{ env.GIT_COMMIT }}\n | dataset_sample\yaml\bytebase_bytebase\.github\workflows\build-push-release-image.yml | build-push-release-image.yml | YAML | 1,479 | 0.8 | 0 | 0.045455 | react-lib | 464 | 2024-07-31T19:24:40.696307 | GPL-3.0 | false | 373b402b7670b8fa69265ac0369eb55d |
# For most projects, this workflow file will not need changing; you simply need\n# to commit it to your repository.\n#\n# You may wish to alter this file to override the set of languages analyzed,\n# or to provide custom queries or build logic.\n#\n# ******** NOTE ********\n# We have attempted to detect the languages in your repository. Please check\n# the `language` matrix defined below to confirm you have the correct set of\n# supported CodeQL languages.\n#\nname: CodeQL\n\non:\n schedule:\n - cron: '0 0 * * 6'\n\njobs:\n analyze:\n name: Analyze\n runs-on: ubuntu-latest\n permissions:\n actions: read\n contents: read\n security-events: write\n\n strategy:\n fail-fast: false\n matrix:\n language:\n - go\n - javascript\n # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]\n # Learn more:\n # https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed\n\n steps:\n - name: Checkout repository\n uses: actions/checkout@v4\n\n - name: Initialize CodeQL\n uses: github/codeql-action/init@v3\n with:\n languages: ${{ matrix.language }}\n\n - name: Autobuild\n uses: github/codeql-action/autobuild@v3\n\n - name: Perform CodeQL Analysis\n uses: github/codeql-action/analyze@v3\n | dataset_sample\yaml\bytebase_bytebase\.github\workflows\codeql-analysis.yml | codeql-analysis.yml | YAML | 1,433 | 0.8 | 0 | 0.325581 | awesome-app | 958 | 2024-03-05T19:03:29.521092 | Apache-2.0 | false | d06ce0c388c7ecbfbe2044484b4e4919 |
name: Backport merged pull request\non:\n pull_request:\n types: [closed]\n issue_comment:\n types: [created]\npermissions:\n contents: write # so it can comment\n pull-requests: write # so it can create pull requests\njobs:\n backport:\n name: Backport pull request\n runs-on: ubuntu-latest\n\n # Only run when pull request is merged\n # or when a comment containing `/backport` is created by someone other than the\n # https://github.com/backport-action bot user (user id: 97796249). Note that if you use your\n # own PAT as `github_token`, that you should replace this id with yours.\n if: >\n (\n github.event_name == 'pull_request' &&\n github.event.pull_request.merged\n ) || (\n github.event_name == 'issue_comment' &&\n github.event.issue.pull_request &&\n github.event.comment.user.id != 97796249 &&\n contains(github.event.comment.body, '/backport')\n )\n steps:\n - uses: actions/checkout@v4\n - name: Create backport pull requests\n uses: korthout/backport-action@v3\n with:\n github_token: ${{ secrets.GITHUB_TOKEN }}\n pull_title: "cherrypick: [${target_branch}] ${pull_title}"\n # Optional\n # Token to authenticate requests to GitHub\n # github_token: ${{ secrets.GITHUB_TOKEN }}\n\n # Optional\n # Working directory for the backport action\n # github_workspace: ${{ github.workspace }}\n\n # Optional\n # Regex pattern to match github labels\n # Must contain a capture group for the target branch\n # label_pattern: ^backport ([^ ]+)$\n\n # Optional\n # Template used as description in the pull requests created by this action.\n # Placeholders can be used to define variable values.\n # These are indicated by a dollar sign and curly braces (`${placeholder}`).\n # Please refer to this action's README for all available placeholders.\n # pull_description: |-\n # # Description\n # Backport of #${pull_number} to `${target_branch}`.\n\n # Optional\n # Template used as the title in the pull requests created by this action.\n # Placeholders can be used to define variable values.\n # These are indicated by a dollar sign and curly braces (`${placeholder}`).\n # Please refer to this action's README for all available placeholders.\n # pull_title: "[Backport ${target_branch}] ${pull_title}"\n | dataset_sample\yaml\bytebase_bytebase\.github\workflows\comment-cherry-pick.yml | comment-cherry-pick.yml | YAML | 2,500 | 0.8 | 0.095238 | 0.482759 | awesome-app | 540 | 2024-08-02T07:45:34.822844 | GPL-3.0 | false | c4b59070e5f460d0632262fb075a22fc |
# https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/troubleshooting-required-status-checks#handling-skipped-but-required-checks\nname: golangci-lint\n\non:\n pull_request:\n branches:\n - 'main'\n - 'release/*.*.*'\n paths-ignore:\n - 'backend/**'\n - 'go.mod'\n - 'proto/**/*.go'\n\njobs:\n golangci-lint:\n runs-on: ubuntu-latest\n steps:\n - run: 'echo "Not required"'\n | dataset_sample\yaml\bytebase_bytebase\.github\workflows\golangci-lint-default.yml | golangci-lint-default.yml | YAML | 483 | 0.95 | 0 | 0.0625 | awesome-app | 103 | 2024-12-05T09:24:09.630336 | GPL-3.0 | false | e5011b15decac2dbcde34f9faaf47d78 |
name: golangci-lint\n\non:\n pull_request:\n branches:\n - 'main'\n - 'release/*.*.*'\n paths:\n - 'backend/**'\n - 'go.mod'\n - 'proto/**/*.go'\n - '.golangci.yaml'\n\nconcurrency:\n group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}\n cancel-in-progress: true\n\njobs:\n golangci-lint:\n runs-on: self-hosted\n timeout-minutes: 30\n steps:\n - uses: actions/checkout@v4\n - uses: actions/setup-go@v5\n with:\n go-version: '1.24.2'\n cache: false # Caching is slow.\n - name: golangci-lint\n uses: golangci/golangci-lint-action@v7\n with:\n version: v2.1.2\n args: --verbose -j 8 --timeout 30m --max-same-issues=30 --allow-parallel-runners | dataset_sample\yaml\bytebase_bytebase\.github\workflows\golangci-lint.yml | golangci-lint.yml | YAML | 763 | 0.8 | 0 | 0 | node-utils | 592 | 2024-02-09T08:27:29.754155 | BSD-3-Clause | false | 1774b587b09c72fd35a4eb36f062731b |
name: Proto linter\n\non:\n pull_request:\n branches:\n - 'main'\n - 'release/*.*.*'\n paths-ignore:\n - 'proto/**'\n\njobs:\n lint-protos:\n runs-on: ubuntu-latest\n steps:\n - run: 'echo "Not required"'\n | dataset_sample\yaml\bytebase_bytebase\.github\workflows\proto-linter-default.yml | proto-linter-default.yml | YAML | 225 | 0.95 | 0 | 0 | node-utils | 402 | 2023-10-05T00:51:13.759756 | Apache-2.0 | false | 73d0cd8cd10325ec4548cc52b4833ff9 |
name: Proto linter\n\non:\n pull_request:\n branches:\n - 'main'\n - 'release/*.*.*'\n paths:\n - 'proto/**'\n\njobs:\n lint-protos:\n runs-on: ubuntu-latest\n steps:\n - name: Checkout\n uses: actions/checkout@v4\n with:\n fetch-depth: 0\n - name: Setup buf\n uses: bufbuild/buf-setup-action@v1\n - name: buf lint\n uses: bufbuild/buf-lint-action@v1\n with:\n input: "proto"\n - name: buf format\n run: |\n if [[ $(buf format -d) ]]; then\n echo "Run 'buf format -w'"\n exit 1\n fi\n | dataset_sample\yaml\bytebase_bytebase\.github\workflows\proto-linter.yml | proto-linter.yml | YAML | 603 | 0.8 | 0.033333 | 0 | awesome-app | 580 | 2024-04-29T21:33:27.807350 | GPL-3.0 | false | d8eddb77d5f41fcbd61fa2347ffc6243 |
# This file configures which paths automatically get which label on new pull\n# requests.\n#\n# It generally has the syntax:\n#\n# <label 0>:\n# - <glob-path 0>\n# - ...\n# - <glob-path n>\n# ...\n# <label n>:\n# - <glob-path 0>\n# - ...\n# - <glob-path n>\n#\n# See https://github.com/actions/labeler for details.\n#\n# Note that we keep the labels in alphabetical order below.\n\n"cranelift":\n - "cranelift/**"\n\n"cranelift:area:machinst":\n - "cranelift/codegen/src/machinst/**"\n\n"cranelift:area:aarch64":\n - "cranelift/codegen/src/isa/aarch64/**"\n\n"cranelift:area:x64":\n - "cranelift/codegen/src/isa/x64/**"\n\n"cranelift:docs":\n - "cranelift/docs/**"\n\n"cranelift:meta":\n - "cranelift/codegen/meta/**"\n\n"cranelift:module":\n - "cranelift/faerie/**"\n - "cranelift/module/**"\n - "cranelift/object/**"\n - "cranelift/simplejit/**"\n\n"cranelift:wasm":\n - "cranelift/wasm/**"\n - "cranelift/wasmtests/**"\n\n"fuzzing":\n - "crates/fuzzing/**"\n - "fuzz/**"\n\n"isle":\n - "cranelift/isle/**"\n - "**.isle"\n - "cranelift/codegen/src/isa/*/lower/isle.rs"\n - "cranelift/codegen/src/isa/*/lower/isle/**"\n - "cranelift/codegen/src/opts/*"\n\n"pulley":\n - "pulley/**"\n\n"wasi":\n - "crates/wasi/**"\n - "crates/wasi-common/**"\n - "crates/wiggle/**"\n\n"wasmtime:api":\n - "crates/wasmtime/**"\n\n"wasmtime:c-api":\n - "crates/c-api/**"\n\n"wasmtime:config":\n - "crates/wasmtime/src/config.rs"\n - "crates/wasmtime/src/config/**"\n\n"wasmtime:docs":\n - "*.md"\n - "docs/**"\n\n"wasmtime:ref-types":\n - "crates/cranelift/src/gc.rs"\n - "crates/cranelift/src/gc/**"\n - "crates/wasmtime/src/runtime/gc.rs"\n - "crates/wasmtime/src/runtime/gc/**"\n - "crates/wasmtime/src/runtime/vm/gc.rs"\n - "crates/wasmtime/src/runtime/vm/gc/**"\n\n"winch":\n - "winch/**"\n - "crates/winch/**"\n | dataset_sample\yaml\bytecodealliance_wasmtime\.github\labeler.yml | labeler.yml | YAML | 1,793 | 0.8 | 0.010989 | 0.246575 | react-lib | 264 | 2023-10-02T08:40:19.657789 | Apache-2.0 | false | 58558d45b044bea79ae67eeb68f3d0c4 |
# This is a small action which uses the pre-installed Android NDK on GitHub\n# Actions builders, configured with `$ANDROID_NDK`, to compile and link Android\n# code. For Rust we mostly need to configure the linker to Cargo and the C\n# compiler to the `cc` crate, so this sets various environment variables to the\n# appropriate tool within `$ANDROID_NDK`.\n\nname: 'Setup Rust to use the Android NDK'\ndescription: 'Setup Rust to use the android NDK'\n\ninputs:\n target:\n description: 'Rust target being used'\n required: true\n android-platform:\n description: 'Platform version to use for the C compiler'\n required: false\n default: '26'\n\nruns:\n using: composite\n steps:\n - run: |\n target=${{ inputs.target }}\n cc_target=$(echo ${{ inputs.target }} | tr - _)\n upcase=$(echo $target | tr a-z- A-Z_)\n ndk_bin=$ANDROID_NDK/toolchains/llvm/prebuilt/linux-x86_64/bin\n linker=$ndk_bin/${target}${{ inputs.android-platform }}-clang\n echo CARGO_TARGET_${upcase}_LINKER=$linker >> $GITHUB_ENV\n echo CC_${cc_target}=$linker >> $GITHUB_ENV\n echo RANLIB_${cc_target}=$ndk_bin/llvm-ranlib >> $GITHUB_ENV\n echo AR_${cc_target}=$ndk_bin/llvm-ar >> $GITHUB_ENV\n shell: bash\n | dataset_sample\yaml\bytecodealliance_wasmtime\.github\actions\android-ndk\action.yml | action.yml | YAML | 1,238 | 0.95 | 0.03125 | 0.172414 | react-lib | 634 | 2025-03-01T15:06:27.329407 | MIT | false | b807d462fd143a899b3440b0ad9abaf5 |
name: 'Build wasi component adapter provider'\ndescription: 'Build the wasi-preview1-component-adapter provider using the adapter artefacts'\n\ninputs:\n run-id:\n description: 'run id of the main.yml action that produced the adapter artefacts'\n required: true\n\nruns:\n using: composite\n steps:\n - uses: actions/download-artifact@v4\n with:\n name: bins-wasi-preview1-component-adapter\n path: crates/wasi-preview1-component-adapter/provider/artefacts\n github-token: ${{ github.token }}\n run-id: ${{ inputs.run-id }}\n\n - name: Install required Rust components\n shell: bash\n run: rustup component add rustfmt clippy\n\n - name: Build and checl the adapter provider\n shell: bash\n run: ./ci/build-wasi-preview1-component-adapter-provider.sh\n | dataset_sample\yaml\bytecodealliance_wasmtime\.github\actions\build-adapter-provider\action.yml | action.yml | YAML | 798 | 0.85 | 0 | 0 | node-utils | 870 | 2024-11-11T23:52:51.920004 | Apache-2.0 | false | e5dec24c9a0983bfaad3525fc93b3f8a |
name: 'Cancel workflow on failure'\ndescription: 'If the current job is failing, cancel the whole workflow'\n\nruns:\n using: composite\n steps:\n # Don't cancel on PRs which don't have permissions to do so and also don't\n # cancel on Windows because that often results in a race between marking the\n # job as failed or cancelled, often marking it as canceled. This doesn't\n # seem to be an issue for other platforms though. If a failure happens on\n # Windows let the failure naturally propagate.\n - run: gh run cancel ${{ github.run_id }}\n shell: bash\n if: github.event_name != 'pull_request' && runner.os != 'Windows'\n env:\n GH_TOKEN: ${{ github.token }}\n | dataset_sample\yaml\bytecodealliance_wasmtime\.github\actions\cancel-on-failure\action.yml | action.yml | YAML | 693 | 0.8 | 0.125 | 0.333333 | react-lib | 475 | 2024-08-16T18:44:11.929295 | BSD-3-Clause | false | 30ea467c566d4dcde8b72f3dbcdeb225 |
name: 'Fetch run id for commit'\ndescription: 'Fetch the main.yml run id for the current commit'\n\nruns:\n using: composite\n steps:\n - name: Fetch run id\n shell: bash\n run: |\n run_id=$(\n gh api -H 'Accept: application/vnd.github+json' \\n /repos/${{ github.repository }}/actions/workflows/main.yml/runs\?exclude_pull_requests=true \\n | jq '.workflow_runs' \\n | jq "map(select(.head_commit.id == \"${{ github.sha }}\"))[0].id" \\n )\n echo COMMIT_RUN_ID=${run_id} >> "$GITHUB_ENV"\n env:\n GH_TOKEN: ${{ github.token }}\n | dataset_sample\yaml\bytecodealliance_wasmtime\.github\actions\fetch-run-id\action.yml | action.yml | YAML | 607 | 0.7 | 0.111111 | 0 | react-lib | 160 | 2024-02-05T03:57:58.750959 | GPL-3.0 | false | e0b85380e8d3ee5447f1ba181ac15886 |
name: 'wasmtime github releases'\ndescription: 'wasmtime github releases'\ninputs:\n token:\n description: ''\n required: true\n files:\n description: ''\n required: true\nruns:\n using: 'node20'\n main: 'main.js'\n | dataset_sample\yaml\bytecodealliance_wasmtime\.github\actions\github-release\action.yml | action.yml | YAML | 219 | 0.85 | 0 | 0 | react-lib | 877 | 2023-10-17T06:35:29.636369 | Apache-2.0 | false | 18ded9068fe389f2465693bfba170a8f |
name: 'Install the `cargo-vet` tool'\ndescription: 'Runs `cargo install cargo-vet`'\n\ninputs:\n version:\n description: 'Version to install'\n required: false\n default: '0.10.0'\n\nruns:\n using: composite\n steps:\n - uses: actions/cache@v4\n with:\n path: ${{ runner.tool_cache }}/cargo-vet\n key: cargo-vet-bin-${{ inputs.version }}\n - run: echo "${{ runner.tool_cache }}/cargo-vet/bin" >> $GITHUB_PATH\n shell: bash\n - run: cargo install --root ${{ runner.tool_cache }}/cargo-vet --version ${{ inputs.version }} cargo-vet --locked\n shell: bash\n | dataset_sample\yaml\bytecodealliance_wasmtime\.github\actions\install-cargo-vet\action.yml | action.yml | YAML | 584 | 0.85 | 0 | 0 | awesome-app | 420 | 2024-09-18T12:59:12.383643 | MIT | false | 12f2a580ea746d83415713365e506ff8 |
name: 'Install ninja'\ndescription: 'Install ninja'\n\nruns:\n using: composite\n steps:\n - name: Install ninja (macOS)\n run: brew install ninja\n if: runner.os == 'macOS'\n shell: bash\n - name: Install ninja (Windows)\n run: choco install ninja\n if: runner.os == 'Windows'\n shell: bash\n - name: Install ninja (Linux)\n run: sudo apt-get update && sudo apt-get install -y ninja-build\n if: runner.os == 'Linux'\n shell: bash\n | dataset_sample\yaml\bytecodealliance_wasmtime\.github\actions\install-ninja\action.yml | action.yml | YAML | 470 | 0.7 | 0.166667 | 0 | python-kit | 58 | 2024-06-10T16:51:45.491228 | GPL-3.0 | false | e26a56ca1648e252e61d5c71cde875e6 |
name: 'Install Rust toolchain'\ndescription: 'Install a rust toolchain'\n\ninputs:\n toolchain:\n description: 'Default toolchan to install'\n required: false\n default: 'default'\n msrv_range:\n description: 'Versions later-than-latest-Rust the MSRV supports'\n required: false\n default: '2'\n\nruns:\n using: composite\n steps:\n - name: Install Rust\n shell: bash\n id: select\n run: |\n # Determine MSRV as N in `1.N.0` by looking at the `rust-version`\n # located in the root `Cargo.toml`.\n msrv=$(grep 'rust-version.*1' Cargo.toml | sed 's/.*\.\([0-9]*\)\..*/\1/')\n range=${{ inputs.msrv_range }}\n\n if [ "${{ inputs.toolchain }}" = "default" ]; then\n echo "version=1.$((msrv+range)).0" >> "$GITHUB_OUTPUT"\n elif [ "${{ inputs.toolchain }}" = "msrv" ]; then\n echo "version=1.$msrv.0" >> "$GITHUB_OUTPUT"\n elif [ "${{ inputs.toolchain }}" = "wasmtime-ci-pinned-nightly" ]; then\n echo "version=nightly-2025-04-03" >> "$GITHUB_OUTPUT"\n else\n echo "version=${{ inputs.toolchain }}" >> "$GITHUB_OUTPUT"\n fi\n\n - name: Install Rust\n shell: bash\n run: |\n rustup set profile minimal\n rustup update "${{ steps.select.outputs.version }}" --no-self-update\n rustup default "${{ steps.select.outputs.version }}"\n\n # Save disk space by avoiding incremental compilation. Also turn down\n # debuginfo from 2 to 0 to help save disk space.\n cat >> "$GITHUB_ENV" <<EOF\n CARGO_INCREMENTAL=0\n CARGO_PROFILE_DEV_DEBUG=0\n CARGO_PROFILE_TEST_DEBUG=0\n EOF\n\n # Deny warnings on CI to keep our code warning-free as it lands in-tree.\n echo RUSTFLAGS="-D warnings" >> "$GITHUB_ENV"\n\n if [[ "${{ runner.os }}" = "macOS" ]]; then\n cat >> "$GITHUB_ENV" <<EOF\n CARGO_PROFILE_DEV_SPLIT_DEBUGINFO=unpacked\n CARGO_PROFILE_TEST_SPLIT_DEBUGINFO=unpacked\n EOF\n fi\n\n - name: Require semicolons in WIT\n shell: bash\n run: echo WIT_REQUIRE_SEMICOLONS=1 >> "$GITHUB_ENV"\n\n - name: Install the WASI target\n shell: bash\n run: rustup target add wasm32-wasip1 wasm32-unknown-unknown\n | dataset_sample\yaml\bytecodealliance_wasmtime\.github\actions\install-rust\action.yml | action.yml | YAML | 2,224 | 0.95 | 0.029851 | 0.086207 | awesome-app | 983 | 2025-06-02T05:42:12.013601 | MIT | false | 632557673b16bac1d47ba0e50859362f |
name: Run cargo-audit\non:\n schedule:\n - cron: '0 0 * * *'\njobs:\n security_audit:\n if: github.repository == 'bytecodealliance/wasmtime'\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n with:\n submodules: true\n - uses: rustsec/audit-check@v1.4.1\n with:\n token: ${{ secrets.GITHUB_TOKEN }}\n # This seems to hit rate limits about 50% of the time, unclear why, but\n # emailing us once every few days is not the most useful thing.\n continue-on-error: true\n | dataset_sample\yaml\bytecodealliance_wasmtime\.github\workflows\cargo-audit.yml | cargo-audit.yml | YAML | 540 | 0.8 | 0.055556 | 0.111111 | vue-tools | 730 | 2024-12-18T10:28:06.307168 | Apache-2.0 | false | a0767f73aa0f63615c6ad24f6ada117a |
name: "Cron triggers for CI"\non:\n schedule:\n # βAt 02:34 on Monday.β\n #\n # https://crontab.guru/#34_2_*_*_1\n #\n # This is used to perform a weekly run of CI for all release branches,\n # ideally in off-work-hours to not clog up the queue.\n - cron: '34 2 * * 1'\n\n # "At 02:34 on Sunday and every day-of-week from Tuesday through Saturday"\n #\n # https://crontab.guru/#34_2_*_*_0,2-6\n #\n # This is used to perform a daily run of CI for the `main` branch to prime\n # caches for github actions and the merge queue. Note that this frequency\n # doesn't overlap the above schedule to avoid triggering two builds on the\n # same day.\n - cron: '34 2 * * 0,2-6'\n\n # Allow manually triggering this request via a button\n workflow_dispatch:\n\npermissions:\n issues: write\n actions: write\n\njobs:\n run:\n if: "github.repository == 'bytecodealliance/wasmtime' || !github.event.schedule"\n name: Trigger release branch CI\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n with:\n submodules: true\n fetch-depth: 0\n\n # Always trigger a CI run on the `main` branch to prime GHA caches.\n - run: gh workflow run main.yml --ref main\n name: Trigger main branch CI daily\n env:\n GH_TOKEN: ${{ github.token }}\n\n # If this is a once-a-week run then additionally trigger CI for release\n # branches to ensure that the CI there is kept up-to-date.\n - run: rustc ci/trigger-release-branch-ci.rs\n - run: ./trigger-release-branch-ci\n name: Trigger release branch CI weekly\n env:\n GH_TOKEN: ${{ github.token }}\n if: "github.event.schedule == '34 2 * * 1' || !github.event.schedule"\n | dataset_sample\yaml\bytecodealliance_wasmtime\.github\workflows\ci-cron-trigger.yml | ci-cron-trigger.yml | YAML | 1,734 | 0.8 | 0.132075 | 0.382979 | react-lib | 240 | 2024-05-17T21:08:35.420980 | Apache-2.0 | false | 36798e6888f4e722ca309b8a1703ea15 |
name: CI\non:\n # Run CI for PRs to `main` and to release branches.\n #\n # Note that PRs to `main` will run a subset of tests and PRs to the\n # `release-*` branches will run full CI.\n pull_request:\n branches:\n - main\n - 'release-*'\n\n # This is the CI that runs for PRs-to-merge.\n merge_group:\n\n push:\n branches:\n # Right now merge queues can't be used with wildcards in branch protections\n # so full CI runs both on PRs to release branches as well as merges to\n # release branches. Note that the merge to a release branch may produce a\n # tag at the end of CI if successful and the tag will trigger the artifact\n # uploads as well as publication to crates.io.\n - 'release-*'\n\n # Allow manually triggering this request via a button or another workflow.\n workflow_dispatch:\n\ndefaults:\n run:\n shell: bash\n\n# Cancel any in-flight jobs for the same PR/branch so there's only one active\n# at a time\nconcurrency:\n group: ${{ github.workflow }}-${{ github.ref }}\n cancel-in-progress: true\n\njobs:\n # Check Code style quickly by running `rustfmt` over all code\n rustfmt:\n name: Rustfmt\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n with:\n submodules: true\n - uses: ./.github/actions/install-rust\n - run: rustup component add rustfmt\n - run: cargo fmt --all -- --check\n\n # common logic to cancel the entire run if this job fails\n - uses: ./.github/actions/cancel-on-failure\n if: failure()\n\n # Quick JS formatting/linting checks for the little bits of JS we have for the\n # `wasmtime explore` UI.\n check_js:\n name: Check JS\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n - run: npm install\n working-directory: ./crates/explorer\n - run: npm run lint\n working-directory: ./crates/explorer\n - run: npm run fmt-check\n working-directory: ./crates/explorer\n\n # common logic to cancel the entire run if this job fails\n - uses: ./.github/actions/cancel-on-failure\n if: failure()\n\n # Check Code style quickly by running `clang-format` over all the C/C++ code\n #\n # Note that `wasmtime-platform.h` is excluded here as it's auto-generated.\n clangformat:\n name: Clang format\n runs-on: ubuntu-24.04\n steps:\n - uses: actions/checkout@v4\n with:\n submodules: true\n - run: |\n git ls-files '*.h' '*.c' '*.cpp' | \\n grep -v wasmtime-platform.h | \\n grep -v wasm.h | \\n xargs clang-format-18 --dry-run --Werror --verbose\n\n # common logic to cancel the entire run if this job fails\n - uses: ./.github/actions/cancel-on-failure\n if: failure()\n\n # Lint dependency graph for security advisories, duplicate versions, and\n # incompatible licences\n cargo_deny:\n name: Cargo deny\n needs: determine\n if: needs.determine.outputs.audit\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n with:\n submodules: true\n - uses: ./.github/actions/install-rust\n - run: |\n set -e\n curl -L https://github.com/EmbarkStudios/cargo-deny/releases/download/0.18.2/cargo-deny-0.18.2-x86_64-unknown-linux-musl.tar.gz | tar xzf -\n mv cargo-deny-*-x86_64-unknown-linux-musl/cargo-deny cargo-deny\n echo `pwd` >> $GITHUB_PATH\n - run: cargo deny check bans licenses\n\n # common logic to cancel the entire run if this job fails\n - uses: ./.github/actions/cancel-on-failure\n if: failure()\n\n # Ensure dependencies are vetted. See https://mozilla.github.io/cargo-vet/\n #\n # Note that this step, on PRs only, is allowed to fail. This is then followed\n # up with the `cargo_vet_failure_for_prs` step below. The intention is to\n # avoid causing this check to fail PRs while still enabling it to fail the\n # merge queue checks. That way PRs can enter the merge queue when this step is\n # failing if `main` has picked up `cargo vet` entries in the meantime for the\n # failures.\n cargo_vet:\n name: Cargo vet\n needs: determine\n if: github.repository == 'bytecodealliance/wasmtime' && needs.determine.outputs.audit\n runs-on: ubuntu-latest\n outputs:\n outcome: ${{ steps.vet.outcome }}\n steps:\n - uses: actions/checkout@v4\n with:\n submodules: true\n - uses: ./.github/actions/install-rust\n - uses: ./.github/actions/install-cargo-vet\n - id: vet\n run: cargo vet --locked\n continue-on-error: ${{ github.event_name == 'pull_request' }}\n\n # Double-check that if versions are bumped that `cargo vet` still works.\n # This is intended to weed out mistakes such as #9115 from happening again.\n - run: rustc scripts/publish.rs && ./publish bump-patch && cargo vet\n name: Ensure `cargo vet` works if versions are bumped\n\n # common logic to cancel the entire run if this job fails\n - uses: ./.github/actions/cancel-on-failure\n if: failure()\n\n cargo_vet_failure_for_prs:\n name: Cargo vet failed on a Pull Request\n needs:\n - determine\n - cargo_vet\n if: |\n needs.determine.outputs.audit\n && github.event_name == 'pull_request'\n && needs.cargo_vet.outputs.outcome == 'failure'\n runs-on: ubuntu-latest\n steps:\n # NB: this message ideally would link back to the previous step, but I'm not\n # sure how to easily do that.\n - run: |\n echo 'failed to run "cargo vet", see previous `Cargo vet` step'\n echo 'exiting with a nonzero status now to alert PR authors'\n echo 'note, though, that this PR can still enter the merge queue'\n echo ''\n echo 'See https://docs.wasmtime.dev/contributing-coding-guidelines.html#cargo-vet-for-contributors'\n echo 'for more information about the vetting process for Wasmtime'\n exit 1\n\n # This job is a dependency of many of the jobs below. This calculates what's\n # actually being run for this workflow. For example:\n #\n # * Pushes to branches, which is currently both pushes to merge queue branches\n # as well as release branches, perform full CI.\n # * PRs to release branches (not `main`) run full CI.\n # * PRs to `main` will only run a few smoke tests above plus some elements of\n # the test matrix. The test matrix here is determined dynamically by the\n # `./ci/build-test-matrix.js` script given the commits that happened and\n # the files modified.\n determine:\n name: Determine CI jobs to run\n runs-on: ubuntu-latest\n outputs:\n run-full: ${{ steps.calculate.outputs.run-full }}\n test-matrix: ${{ steps.calculate.outputs.test-matrix }}\n build-matrix: ${{ steps.calculate.outputs.build-matrix }}\n test-capi: ${{ steps.calculate.outputs.test-capi }}\n test-nightly: ${{ steps.calculate.outputs.test-nightly }}\n test-miri: ${{ steps.calculate.outputs.test-miri }}\n audit: ${{ steps.calculate.outputs.audit }}\n preview1-adapter: ${{ steps.calculate.outputs.preview1-adapter }}\n run-dwarf: ${{ steps.calculate.outputs.run-dwarf }}\n platform-checks: ${{ steps.calculate.outputs.platform-checks }}\n steps:\n - uses: actions/checkout@v4\n - id: calculate\n env:\n GH_TOKEN: ${{ github.token }}\n run: |\n touch commits.log names.log\n # Note that CI doesn't run on pushes to `main`, only pushes to merge\n # queue branches and release branches, so this only runs full CI in\n # those locations.\n if [ "${{ github.event_name }}" != "pull_request" ]; then\n run_full=true\n else\n pr=${{ github.event.number }}\n gh pr view $pr --json commits | tee commits.log\n gh pr diff $pr --name-only | tee names.log || echo "failed to get files"\n if [ "${{ github.base_ref }}" != "main" ]; then\n run_full=true\n elif grep -q 'prtest:full' commits.log; then\n run_full=true\n elif grep -q 'prtest:debug' commits.log; then\n echo run-dwarf=true >> $GITHUB_OUTPUT\n elif grep -q 'prtest:platform-checks' commits.log; then\n echo platform-checks=true >> $GITHUB_OUTPUT\n elif grep -q 'prtest:miri' commits.log; then\n echo test-miri=true >> $GITHUB_OUTPUT\n fi\n if grep -q crates.c-api names.log; then\n echo test-capi=true >> $GITHUB_OUTPUT\n fi\n if grep -q fuzz names.log; then\n echo test-nightly=true >> $GITHUB_OUTPUT\n fi\n if grep -q sys.custom names.log; then\n echo test-nightly=true >> $GITHUB_OUTPUT\n fi\n if grep -q Cargo.lock names.log; then\n echo audit=true >> $GITHUB_OUTPUT\n fi\n if grep -q supply-chain names.log; then\n echo audit=true >> $GITHUB_OUTPUT\n fi\n if grep -q component-adapter names.log; then\n echo preview1-adapter=true >> $GITHUB_OUTPUT\n fi\n if grep -q debug names.log; then\n echo run-dwarf=true >> $GITHUB_OUTPUT\n fi\n if grep -q pulley names.log; then\n echo test-nightly=true >> $GITHUB_OUTPUT\n fi\n fi\n matrix="$(node ./ci/build-test-matrix.js ./commits.log ./names.log $run_full)"\n echo "test-matrix={\"include\":$(echo $matrix)}" >> $GITHUB_OUTPUT\n echo "$matrix"\n\n matrix="$(node ./ci/build-build-matrix.js)"\n echo "build-matrix={\"include\":$(echo $matrix)}" >> $GITHUB_OUTPUT\n\n if [ "$run_full" = "true" ]; then\n echo run-full=true >> $GITHUB_OUTPUT\n echo test-capi=true >> $GITHUB_OUTPUT\n echo test-nightly=true >> $GITHUB_OUTPUT\n echo test-miri=true >> $GITHUB_OUTPUT\n echo audit=true >> $GITHUB_OUTPUT\n echo preview1-adapter=true >> $GITHUB_OUTPUT\n echo run-dwarf=true >> $GITHUB_OUTPUT\n echo platform-checks=true >> $GITHUB_OUTPUT\n fi\n\n # Build all documentation of Wasmtime, including the C API documentation,\n # mdbook documentation, etc. This produces a `gh-pages` artifact which is what\n # gets uploaded to the `gh-pages` branch later on.\n doc:\n needs: determine\n if: needs.determine.outputs.run-full\n name: Doc build\n runs-on: ubuntu-latest\n env:\n CARGO_MDBOOK_VERSION: 0.4.37\n RUSTDOCFLAGS: -Dbroken_intra_doc_links --cfg docsrs\n OPENVINO_SKIP_LINKING: 1\n steps:\n - uses: actions/checkout@v4\n with:\n submodules: true\n - uses: ./.github/actions/install-rust\n with:\n toolchain: wasmtime-ci-pinned-nightly\n\n # Build C API documentation\n - run: curl -L https://sourceforge.net/projects/doxygen/files/rel-1.9.3/doxygen-1.9.3.linux.bin.tar.gz/download | tar xzf -\n - run: echo "`pwd`/doxygen-1.9.3/bin" >> $GITHUB_PATH\n - run: cmake -S crates/c-api -B target/c-api\n - run: cmake --build target/c-api --target doc\n\n # install mdbook, build the docs, and test the docs\n - uses: actions/cache@v4\n with:\n path: ${{ runner.tool_cache }}/mdbook\n key: cargo-mdbook-bin-${{ env.CARGO_MDBOOK_VERSION }}\n - run: |\n echo "${{ runner.tool_cache }}/mdbook/bin" >> $GITHUB_PATH\n cargo install --root ${{ runner.tool_cache }}/mdbook --version ${{ env.CARGO_MDBOOK_VERSION }} mdbook --locked\n - run: (cd docs && mdbook build)\n - run: cargo build -p wasi-common --features wasmtime/wat,wasmtime/cranelift\n - run: (cd docs && mdbook test -L ../target/debug/deps)\n\n # Build Rust API documentation.\n #\n # Enable extra features in crates as well to ensure they're documented\n - run: |\n cargo doc --no-deps --workspace \\n --exclude wasmtime-cli \\n --exclude test-programs \\n --exclude cranelift-codegen-meta \\n --features call-hook\n env:\n RUSTDOCFLAGS: --cfg=docsrs\n - run: cargo doc --package cranelift-codegen-meta --document-private-items\n env:\n RUSTDOCFLAGS: --cfg=docsrs\n\n # Assemble the documentation, and always upload it as an artifact for\n # inspection on PRs and such.\n - run: |\n mv docs/book gh-pages\n mv crates/c-api/html gh-pages/c-api\n mv target/doc gh-pages/api\n tar czf gh-pages.tar.gz gh-pages\n - uses: actions/upload-artifact@v4\n with:\n name: gh-pages\n path: gh-pages.tar.gz\n\n # common logic to cancel the entire run if this job fails\n - uses: ./.github/actions/cancel-on-failure\n if: failure()\n\n # Checks of various feature combinations and whether things compile. The goal\n # here isn't to run tests, mostly just serve as a double-check that Rust code\n # compiles and is likely to work everywhere else.\n micro_checks:\n name: Check ${{matrix.name}}\n strategy:\n fail-fast: true\n matrix:\n include:\n - name: wasmtime\n checks: |\n -p wasmtime --no-default-features\n -p wasmtime --no-default-features --features wat\n -p wasmtime --no-default-features --features profiling\n -p wasmtime --no-default-features --features cache\n -p wasmtime --no-default-features --features async\n -p wasmtime --no-default-features --features std\n -p wasmtime --no-default-features --features pooling-allocator\n -p wasmtime --no-default-features --features cranelift\n -p wasmtime --no-default-features --features component-model\n -p wasmtime --no-default-features --features runtime,component-model\n -p wasmtime --no-default-features --features cranelift,wat,async,std,cache\n -p wasmtime --no-default-features --features winch\n -p wasmtime --no-default-features --features wmemcheck\n -p wasmtime --no-default-features --features wmemcheck,cranelift,runtime\n -p wasmtime --no-default-features --features demangle\n -p wasmtime --no-default-features --features addr2line\n -p wasmtime --no-default-features --features gc\n -p wasmtime --no-default-features --features runtime,gc\n -p wasmtime --no-default-features --features cranelift,gc\n -p wasmtime --no-default-features --features gc-drc\n -p wasmtime --no-default-features --features runtime,gc-drc\n -p wasmtime --no-default-features --features cranelift,gc-drc\n -p wasmtime --no-default-features --features gc-null\n -p wasmtime --no-default-features --features runtime,gc-null\n -p wasmtime --no-default-features --features cranelift,gc-null\n -p wasmtime --no-default-features --features runtime\n -p wasmtime --no-default-features --features threads\n -p wasmtime --no-default-features --features runtime,threads\n -p wasmtime --no-default-features --features cranelift,threads\n -p wasmtime --features incremental-cache\n -p wasmtime --features profile-pulley\n -p wasmtime --all-features\n\n - name: wasmtime-fiber\n checks: |\n -p wasmtime-fiber --no-default-features\n -p wasmtime-fiber --no-default-features --features std\n -p wasmtime-fiber --all-features\n\n - name: wasmtime-cli\n checks: |\n -p wasmtime-cli --no-default-features\n -p wasmtime-cli --no-default-features --features pooling-allocator\n -p wasmtime-cli --no-default-features --features run\n -p wasmtime-cli --no-default-features --features run,component-model\n -p wasmtime-cli --no-default-features --features run,pooling-allocator\n -p wasmtime-cli --no-default-features --features compile\n -p wasmtime-cli --no-default-features --features compile,cranelift\n -p wasmtime-cli --no-default-features --features compile,cranelift,component-model\n -p wasmtime-cli --no-default-features --features objdump\n -p wasmtime-cli --all-features\n -p wasmtime-cli --features component-model\n\n - name: cranelift-codegen\n checks: |\n -p cranelift-codegen --benches\n -p cranelift-codegen --no-default-features --features std,unwind,pulley\n\n - name: cranelift-entity\n checks: |\n -p cranelift-entity --no-default-features\n -p cranelift-entity --no-default-features --features enable-serde\n\n - name: wasmtime-bench-api\n checks: |\n -p wasmtime-bench-api\n\n - name: wasmtime-c-api\n checks: |\n -p wasmtime-c-api --no-default-features\n -p wasmtime-c-api --no-default-features --features wat\n -p wasmtime-c-api --no-default-features --features wasi\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n with:\n submodules: true\n - uses: ./.github/actions/install-rust\n\n # Run the check.\n - run: |\n checks=$(cat <<END\n ${{ matrix.checks }}\n END\n )\n echo "$checks" | xargs -I CHECK sh -c 'echo "=== cargo check CHECK ==="; cargo check CHECK'\n\n # common logic to cancel the entire run if this job fails\n - uses: ./.github/actions/cancel-on-failure\n if: failure()\n\n special_tests:\n name: One-off special tests\n runs-on: ubuntu-latest\n needs: determine\n if: needs.determine.outputs.run-full\n steps:\n - uses: actions/checkout@v4\n with:\n submodules: true\n - uses: ./.github/actions/install-rust\n - run: cargo test -p wasmtime-fiber --no-default-features\n - run: cargo test -p cranelift-tools --test logged-filetests\n\n # common logic to cancel the entire run if this job fails\n - uses: ./.github/actions/cancel-on-failure\n if: failure()\n\n # Check that Clippy lints are passing.\n clippy:\n name: Clippy\n runs-on: ubuntu-latest\n env:\n CARGO_NDK_VERSION: 2.12.2\n steps:\n - uses: actions/checkout@v4\n with:\n submodules: true\n - uses: ./.github/actions/install-rust\n\n - run: rustup component add clippy\n - run: cargo clippy --workspace --all-targets\n\n # common logic to cancel the entire run if this job fails\n - uses: ./.github/actions/cancel-on-failure\n if: failure()\n\n # Similar to `micro_checks` but where we need to install some more state\n # (e.g. Android NDK) and we haven't factored support for those things out into\n # a parallel jobs yet.\n monolith_checks:\n name: Monolith Checks\n runs-on: ubuntu-latest\n env:\n CARGO_NDK_VERSION: 2.12.2\n steps:\n - uses: actions/checkout@v4\n with:\n submodules: true\n - uses: ./.github/actions/install-rust\n\n # Check that wasmtime compiles with panic=abort since there's some `#[cfg]`\n # for specifically panic=abort there.\n - run: cargo check -p wasmtime\n env:\n RUSTFLAGS: -Cpanic=abort\n\n # Check a few builds of the cranelift backend\n # - only x86 backend support,\n # - only arm64 backend support,\n # - no debug_assertions.\n - run: cargo check --manifest-path=./cranelift/Cargo.toml --bin clif-util --no-default-features --features=cranelift-codegen/arm64\n - run: cargo check --manifest-path=./cranelift/Cargo.toml --bin clif-util --no-default-features --features=cranelift-codegen/x86\n - run: cargo check --manifest-path=./cranelift/Cargo.toml --bin clif-util\n env:\n CARGO_PROFILE_DEV_DEBUG_ASSERTIONS: false\n\n # Re-vendor all WIT files and ensure that they're all up-to-date by ensuring\n # that there's no git changes.\n - name: Re-vendor WIT\n run: ./ci/vendor-wit.sh\n - run: git diff --exit-code\n\n # Re-vendor the C API and make sure it's up-to-date.\n - name: Re-vendor C API\n run: ./ci/vendor-c-api-headers.sh\n - run: git diff --exit-code\n\n # common logic to cancel the entire run if this job fails\n - uses: ./.github/actions/cancel-on-failure\n if: failure()\n\n # Various checks that Wasmtime builds for a variety of platforms. Each\n # platform may not include the entire dependency tree and maybe just a few\n # features here and there, see the `include` matrix for more details.\n platform_checks:\n needs: determine\n if: needs.determine.outputs.platform-checks\n name: "Platform: ${{ matrix.target }}"\n runs-on: ${{ matrix.os }}\n strategy:\n fail-fast: true\n matrix:\n include:\n - target: x86_64-unknown-freebsd\n os: ubuntu-latest\n test: cargo check\n - target: aarch64-pc-windows-msvc\n os: windows-latest\n test: cargo check\n # While we're here testing a windows target also test a feature'd build\n # on Windows. Note that this isn't covered by `micro_checks` above since\n # that's for unix platforms, not Windows, so include a small check here\n # which isn't the full `micro_checks` matrix but hopefully enough bang\n # for our buck.\n - target: i686-pc-windows-msvc\n os: windows-latest\n test: cargo check && cargo build -p wasmtime --no-default-features --features runtime\n # This is used for general compatibility with `#![no_std]` targets and a\n # variety of crates are tested here.\n - target: x86_64-unknown-none\n os: ubuntu-latest\n test: >\n cargo check -p wasmtime --no-default-features --features runtime,component-model &&\n cargo check -p wasmtime --no-default-features --features runtime,gc,component-model,async &&\n cargo check -p cranelift-control --no-default-features &&\n cargo check -p pulley-interpreter --features encode,decode,disas,interp &&\n cargo check -p wasmtime-wasi-io --no-default-features\n # Use `cross` for illumos to have a C compiler/linker available.\n - target: x86_64-unknown-illumos\n os: ubuntu-latest\n cross: true\n test: cross build\n - target: wasm32-wasip1\n os: ubuntu-latest\n test: cargo build --no-default-features --features compile,cranelift,all-arch\n - target: aarch64-apple-ios\n os: macos-latest\n test: cargo build\n env:\n IPHONEOS_DEPLOYMENT_TARGET: 13.0\n # Test that when Cranelift has no support for an architecture, even a\n # 64-bit one, that Wasmtime still compiles. Note that this is also\n # intended to test various fallbacks in the codebase where we have no\n # support at all for a particular architecture. In theory if someone\n # adds powerpc64 support to Wasmtime this should get switched to some\n # other architecture.\n - target: powerpc64le-unknown-linux-gnu\n os: ubuntu-latest\n test: cargo build\n apt_packages: gcc-powerpc64le-linux-gnu\n env:\n CARGO_TARGET_POWERPC64LE_UNKNOWN_LINUX_GNU_LINKER: powerpc64le-linux-gnu-gcc\n # A no_std target without 64-bit atomics\n - target: riscv32imac-unknown-none-elf\n os: ubuntu-latest\n test: cargo check -p wasmtime --no-default-features --features runtime,gc,component-model,async\n env: ${{ matrix.env || fromJSON('{}') }}\n steps:\n - uses: actions/checkout@v4\n with:\n submodules: true\n - uses: ./.github/actions/install-rust\n - run: rustup target add ${{ matrix.target }}\n - name: Install cross\n run: |\n curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash\n cargo binstall --no-confirm cross\n if: ${{ matrix.cross }}\n - name: Install apt packages\n if: ${{ matrix.apt_packages }}\n run: sudo apt-get update && sudo apt-get install -y ${{ matrix.apt_packages }}\n - run: ${{ matrix.test }}\n env:\n CARGO_BUILD_TARGET: ${{ matrix.target }}\n\n # common logic to cancel the entire run if this job fails\n - uses: ./.github/actions/cancel-on-failure\n if: failure()\n\n # Run tests that require a nightly compiler, such as building fuzz targets.\n test_nightly:\n needs: determine\n if: needs.determine.outputs.test-nightly\n name: Nightly tests\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n with:\n submodules: true\n # Note that nightly is pinned here to insulate us from breakage that might\n # happen upstream. This is periodically updated through a PR.\n - uses: ./.github/actions/install-rust\n with:\n toolchain: wasmtime-ci-pinned-nightly\n\n # Check that `pulley-interpreter` compiles with tail calls enabled. Don't\n # actually run the tests with tail calls enabled, because they are not yet\n # implemented in rustc and cause an ICE.\n - run: cargo check -p pulley-interpreter --all-features\n env:\n RUSTFLAGS: "--cfg pulley_tail_calls"\n - run: cargo test -p pulley-interpreter --all-features --release\n env:\n RUSTFLAGS: "--cfg pulley_assume_llvm_makes_tail_calls"\n\n # Ensure that fuzzers still build.\n #\n # Install the OCaml packages necessary for fuzz targets that use the\n # `wasm-spec-interpreter`.\n - run: cargo install cargo-fuzz --vers "^0.11" --locked\n - run: sudo apt-get update && sudo apt install -y ocaml-nox ocamlbuild ocaml-findlib libzarith-ocaml-dev\n - run: cargo fetch\n working-directory: ./fuzz\n - run: cargo fuzz build --dev\n - run: cargo fuzz build --dev --fuzz-dir ./cranelift/isle/fuzz\n - run: cargo fuzz build --dev --fuzz-dir ./crates/environ/fuzz --features component-model\n - run: cargo fuzz build --dev --fuzz-dir ./cranelift/assembler-x64/fuzz\n\n # common logic to cancel the entire run if this job fails\n - uses: ./.github/actions/cancel-on-failure\n if: failure()\n\n # Perform all tests of the c-api\n test_capi:\n needs: determine\n name: Test C-API ${{ matrix.os }}\n runs-on: ${{ matrix.os }}\n if: needs.determine.outputs.test-capi\n\n strategy:\n fail-fast: true\n matrix:\n os: [ubuntu-24.04, macos-14, windows-2025]\n\n steps:\n - uses: actions/checkout@v4\n with:\n submodules: true\n - uses: ./.github/actions/install-rust\n\n # Build and test the C API with example C programs along with the example\n # Rust programs. Note that this only executes if the `determine` step told\n # us to test the capi which is off-by-default for PRs.\n - run: rustup target add wasm32-wasip2 # wasip2 target needed by example programs\n - run: cmake -Sexamples -Bexamples/build -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTS=ON\n - run: cmake --build examples/build --config Debug\n - run: cmake -E env CTEST_OUTPUT_ON_FAILURE=1 cmake --build examples/build --config Debug --target RUN_TESTS\n if: runner.os == 'Windows'\n - run: cmake -E env CTEST_OUTPUT_ON_FAILURE=1 cmake --build examples/build --config Debug --target test\n if: runner.os != 'Windows'\n\n # common logic to cancel the entire run if this job fails\n - uses: ./.github/actions/cancel-on-failure\n if: failure()\n\n # Perform all tests (debug mode) for `wasmtime`.\n #\n # Note that the full matrix for what may run here is defined within\n # `./ci/build-test-matrix.js` and the execution of the `determine` step will\n # calculate whether the tests are actually run as part of PRs and such.\n test:\n needs: determine\n name: ${{ matrix.name }}\n runs-on: ${{ matrix.os }}\n env:\n QEMU_BUILD_VERSION: 9.1.2\n strategy:\n fail-fast: ${{ github.event_name != 'pull_request' }}\n matrix: ${{ fromJson(needs.determine.outputs.test-matrix) }}\n steps:\n - uses: actions/checkout@v4\n with:\n submodules: true\n - uses: ./.github/actions/install-rust\n with:\n toolchain: ${{ matrix.rust }}\n\n # Install targets in order to build various tests throughout the repo\n - run: rustup target add wasm32-wasip1 wasm32-unknown-unknown ${{ matrix.target }}\n - run: echo CARGO_BUILD_TARGET=${{ matrix.target }} >> $GITHUB_ENV\n if: matrix.target != ''\n\n # Fix an ICE for now in gcc when compiling zstd with debuginfo (??)\n - run: echo CFLAGS=-g0 >> $GITHUB_ENV\n if: matrix.target == 'x86_64-pc-windows-gnu'\n\n # Update binutils if MinGW due to https://github.com/rust-lang/rust/issues/112368\n - run: C:/msys64/usr/bin/pacman.exe -S --needed mingw-w64-x86_64-gcc --noconfirm\n if: matrix.target == 'x86_64-pc-windows-gnu'\n - shell: pwsh\n run: echo "C:\msys64\mingw64\bin" >> $Env:GITHUB_PATH\n if: matrix.target == 'x86_64-pc-windows-gnu'\n\n - run: cargo fetch --locked\n\n - name: Install cross-compilation tools\n run: |\n set -ex\n\n sudo apt-get update\n sudo apt-get install -y ${{ matrix.gcc_package }}\n\n # Configure Cargo for cross compilation and tell it how it can run\n # cross executables\n upcase=$(echo ${{ matrix.target }} | awk '{ print toupper($0) }' | sed 's/-/_/g')\n echo CARGO_TARGET_${upcase}_LINKER=${{ matrix.gcc }} >> $GITHUB_ENV\n if: matrix.gcc != ''\n\n - uses: actions/cache@v4\n with:\n path: ${{ runner.tool_cache }}/qemu\n key: qemu-${{ matrix.target }}-${{ env.QEMU_BUILD_VERSION }}-patchcpuinfo\n if: matrix.qemu != ''\n - name: Install qemu\n run: |\n set -ex\n\n upcase=$(echo ${{ matrix.target }} | awk '{ print toupper($0) }' | sed 's/-/_/g')\n echo CARGO_TARGET_${upcase}_RUNNER=${{ runner.tool_cache }}/qemu/bin/${{ matrix.qemu }} >> $GITHUB_ENV\n\n # QEMU emulation is not always the speediest, so total testing time\n # goes down if we build the libs in release mode when running tests.\n echo CARGO_PROFILE_DEV_OPT_LEVEL=2 >> $GITHUB_ENV\n\n # See comments in the source for why we enable this during QEMU\n # emulation.\n echo WASMTIME_TEST_NO_HOG_MEMORY=1 >> $GITHUB_ENV\n\n # See if qemu is already in the cache\n if [ -f ${{ runner.tool_cache }}/qemu/built ]; then\n exit 0\n fi\n\n # Install build dependencies of QEMU itself.\n sudo apt-get install -y libglib2.0-dev ninja-build\n\n # Download and build qemu from source since the most recent release is\n # way faster at arm emulation than the current version github actions'\n # ubuntu image uses. Disable as much as we can to get it to build\n # quickly.\n curl https://download.qemu.org/qemu-$QEMU_BUILD_VERSION.tar.xz | tar xJf -\n cd qemu-$QEMU_BUILD_VERSION\n ./configure --target-list=${{ matrix.qemu_target }} --prefix=${{ runner.tool_cache}}/qemu --disable-tools --disable-slirp --disable-fdt --disable-capstone --disable-docs\n ninja -C build install\n touch ${{ runner.tool_cache }}/qemu/built\n if: matrix.qemu != ''\n\n - name: Configure ASAN\n run: |\n echo CARGO_PROFILE_DEV_OPT_LEVEL=2 >> $GITHUB_ENV\n echo CARGO_PROFILE_TEST_OPT_LEVEL=2 >> $GITHUB_ENV\n echo RUSTFLAGS=-Zsanitizer=address >> $GITHUB_ENV\n echo RUSTDOCFLAGS=-Zsanitizer=address >> $GITHUB_ENV\n if: ${{ contains(matrix.name, 'ASAN') }}\n\n # Record some CPU details; this is helpful information if tests fail due\n # to CPU-specific features.\n - name: CPU information\n run: lscpu\n if: runner.os == 'Linux'\n - name: CPU information\n run: sysctl hw\n if: runner.os == 'macOS'\n - name: CPU information\n run: Get-WmiObject Win32_Processor\n shell: pwsh\n if: runner.os == 'Windows'\n\n # Since MPK (PKU) is not present on some GitHub runners, we check if it is\n # available before force-enabling it. This occasional testing is better than\n # none at all; ideally we would test in a system-mode QEMU VM.\n - name: Force-run with MPK enabled, if available\n if: ${{ contains(matrix.name, 'MPK') }}\n run: |\n if cargo run --example mpk-available; then\n echo "::notice::This CI run will force-enable MPK; this ensures tests conditioned with the \`WASMTIME_TEST_FORCE_MPK\` environment variable will run with MPK-protected memory pool stripes."\n echo WASMTIME_TEST_FORCE_MPK=1 >> $GITHUB_ENV\n else\n echo "::warning::This CI run will not test MPK; it has been detected as not available on this machine (\`cargo run --example mpk-available\`)."\n fi\n\n # Install VTune, see `cli_tests::profile_with_vtune`.\n - name: Install VTune\n if: matrix.filter == 'linux-x64' && contains(matrix.bucket, 'wasmtime-cli')\n uses: abrown/install-vtune-action@v1\n\n # Build and test all features\n - run: ./ci/run-tests.sh --locked ${{ matrix.bucket }}\n\n # common logic to cancel the entire run if this job fails\n - uses: ./.github/actions/cancel-on-failure\n if: failure()\n\n # Test `wasmtime-wasi-nn` in its own job, as not all of its backends are\n # compatible with all targets, and each must be tested separately anyways.\n test_wasi_nn:\n strategy:\n matrix:\n feature: ["openvino"]\n os: ["ubuntu-24.04", "windows-2025"]\n include:\n - os: windows-2025\n feature: winml\n name: Test wasi-nn (${{ matrix.feature }}, ${{ matrix.os }})\n runs-on: ${{ matrix.os }}\n needs: determine\n if: needs.determine.outputs.run-full\n steps:\n - uses: actions/checkout@v4\n with:\n submodules: true\n - uses: ./.github/actions/install-rust\n\n # Install OpenVINO\n - uses: abrown/install-openvino-action@v9\n if: runner.arch == 'X64'\n\n # Install WinML for testing wasi-nn WinML backend. WinML is only available\n # on Windows clients and Windows Server with desktop experience enabled.\n # GitHub Actions Window Server image doesn't have desktop experience\n # enabled, so we download the standalone library from ONNX Runtime project.\n - uses: nuget/setup-nuget@v2\n if: (runner.os == 'Windows') && (matrix.feature == 'winml')\n - run: nuget install Microsoft.AI.MachineLearning\n if: (runner.os == 'Windows') && (matrix.feature == 'winml')\n\n # Install Rust targets.\n - run: rustup target add wasm32-wasip1\n\n # Run the tests!\n - run: cargo test -p wasmtime-wasi-nn --features ${{ matrix.feature }}\n\n # common logic to cancel the entire run if this job fails\n - uses: ./.github/actions/cancel-on-failure\n if: failure()\n\n # Test the `wasmtime-fuzzing` crate. Split out from the main tests because\n # `--all-features` brings in OCaml, which is a pain to get setup for all\n # targets.\n test_fuzzing:\n needs: determine\n if: needs.determine.outputs.run-full\n name: Test wasmtime-fuzzing\n runs-on: 'ubuntu-latest'\n steps:\n - uses: actions/checkout@v4\n with:\n submodules: true\n - uses: ./.github/actions/install-rust\n\n # Run the tests\n - run: |\n cargo test -p wasmtime-fuzzing -p wasm-spec-interpreter\n\n # common logic to cancel the entire run if this job fails\n - uses: ./.github/actions/cancel-on-failure\n if: failure()\n\n # Test debug (DWARF) related functionality.\n test_debug_dwarf:\n needs: determine\n if: needs.determine.outputs.run-dwarf\n name: Test DWARF debugging\n runs-on: ubuntu-22.04 # FIXME: fails on `ubuntu-24.04` right now\n steps:\n - uses: actions/checkout@v4\n with:\n submodules: true\n - uses: ./.github/actions/install-rust\n - run: |\n rustup target add wasm32-wasip1 wasm32-unknown-unknown\n cd /tmp\n curl -OL https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-24/wasi-sdk-24.0-x86_64-linux.tar.gz\n tar -xzf wasi-sdk-24.0-x86_64-linux.tar.gz\n mv wasi-sdk-24.0-x86_64-linux wasi-sdk\n - run: |\n sudo apt-get update && sudo apt-get install -y gdb lldb-15 llvm\n # workaround for https://bugs.launchpad.net/ubuntu/+source/llvm-defaults/+bug/1972855\n sudo mkdir -p /usr/lib/local/lib/python3.10/dist-packages/lldb\n sudo ln -s /usr/lib/llvm-15/lib/python3.10/dist-packages/lldb/* /usr/lib/python3/dist-packages/lldb/\n # Only testing release since it is more likely to expose issues with our low-level symbol handling.\n cargo test --release --test all -- --ignored --test-threads 1 debug::\n env:\n LLDB: lldb-15 # override default version, 14\n WASI_SDK_PATH: /tmp/wasi-sdk\n\n # common logic to cancel the entire run if this job fails\n - uses: ./.github/actions/cancel-on-failure\n if: failure()\n\n build-preview1-component-adapter:\n name: Build wasi-preview1-component-adapter\n needs: determine\n if: needs.determine.outputs.preview1-adapter\n runs-on: ubuntu-latest\n permissions:\n deployments: write\n contents: write\n steps:\n - uses: actions/checkout@v4\n with:\n submodules: true\n - uses: ./.github/actions/install-rust\n - run: rustup target add wasm32-wasip1 wasm32-unknown-unknown\n\n - name: Install wasm-tools\n run: |\n curl -L https://github.com/bytecodealliance/wasm-tools/releases/download/wasm-tools-1.0.27/wasm-tools-1.0.27-x86_64-linux.tar.gz | tar xfz -\n echo `pwd`/wasm-tools-1.0.27-x86_64-linux >> $GITHUB_PATH\n\n - run: ./ci/build-wasi-preview1-component-adapter.sh\n env:\n VERSION: ${{ github.sha }}\n\n - uses: actions/upload-artifact@v4\n with:\n name: bins-wasi-preview1-component-adapter\n path: target/wasm32-unknown-unknown/release/wasi_snapshot_preview1.*.wasm\n\n\n # common logic to cancel the entire run if this job fails\n - uses: ./.github/actions/cancel-on-failure\n if: failure()\n\n build-preview1-component-adapter-provider:\n name: Build wasi-preview1-component-adapter-provider\n needs: build-preview1-component-adapter\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n with:\n submodules: true\n - uses: ./.github/actions/install-rust\n - uses: ./.github/actions/build-adapter-provider\n with:\n run-id: ${{ github.run_id }}\n\n # common logic to cancel the entire run if this job fails\n - uses: ./.github/actions/cancel-on-failure\n if: failure()\n\n # Verify the "min platform" example still works.\n test-min-platform-example:\n name: Test the min-platform example\n needs: determine\n if: needs.determine.outputs.run-full\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n with:\n submodules: true\n - uses: ./.github/actions/install-rust\n - run: cargo install cbindgen --vers "^0.28" --locked\n - run: rustup target add x86_64-unknown-none\n - run: rustup target add wasm32-wasip2\n - run: ./build.sh x86_64-unknown-none\n working-directory: ./examples/min-platform\n\n # Afterwards make sure the generated header file is up to date by ensuring\n # that the regeneration process didn't change anything in-tree.\n - run: git diff --exit-code\n\n # Test some other feature combinations\n - run: ./build.sh x86_64-unknown-none\n working-directory: ./examples/min-platform\n env:\n WASMTIME_SIGNALS_BASED_TRAPS: 1\n\n - run: ./build.sh x86_64-unknown-none\n working-directory: ./examples/min-platform\n env:\n WASMTIME_SIGNALS_BASED_TRAPS: 1\n MIN_PLATFORM_TEST_DISABLE_WASI: 1\n\n # Add the `wasmtime-platform.h` file as a release artifact\n - uses: actions/upload-artifact@v4\n with:\n name: wasmtime-platform-header\n path: examples/min-platform/embedding/wasmtime-platform.h\n\n # common logic to cancel the entire run if this job fails\n - uses: ./.github/actions/cancel-on-failure\n if: failure()\n\n bench:\n needs: determine\n if: needs.determine.outputs.run-full\n name: Run benchmarks\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n with:\n submodules: true\n - uses: ./.github/actions/install-rust\n - run: rustup target add wasm32-wasip1\n - run: cargo test --benches --release\n\n # common logic to cancel the entire run if this job fails\n - uses: ./.github/actions/cancel-on-failure\n if: failure()\n\n # Verify that cranelift's code generation is deterministic\n meta_deterministic_check:\n needs: determine\n if: needs.determine.outputs.run-full\n name: Meta deterministic check\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n with:\n submodules: true\n - uses: ./.github/actions/install-rust\n - run: cd cranelift/codegen && cargo build --features all-arch\n - run: ci/ensure_deterministic_build.sh\n\n # common logic to cancel the entire run if this job fails\n - uses: ./.github/actions/cancel-on-failure\n if: failure()\n\n verify-publish:\n needs: determine\n if: github.repository == 'bytecodealliance/wasmtime' && needs.determine.outputs.run-full\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n with:\n submodules: true\n - uses: ./.github/actions/install-rust\n - run: |\n cd ${{ runner.tool_cache }}\n curl -L https://github.com/mozilla/sccache/releases/download/0.2.13/sccache-0.2.13-x86_64-unknown-linux-musl.tar.gz | tar xzf -\n echo "`pwd`/sccache-0.2.13-x86_64-unknown-linux-musl" >> $GITHUB_PATH\n echo RUSTC_WRAPPER=sccache >> $GITHUB_ENV\n - run: rustc scripts/publish.rs\n # Make sure the tree is publish-able as-is\n - run: ./publish verify\n # Make sure we can bump version numbers for the next release\n - run: ./publish bump\n\n # common logic to cancel the entire run if this job fails\n - uses: ./.github/actions/cancel-on-failure\n if: failure()\n\n # Run a subset of tests under MIRI on CI to help check the `unsafe` code in\n # Wasmtime to make sure it's at least not obviously incorrect for basic usage.\n # Note that this doesn't run the full test suite since MIRI can't actually run\n # WebAssembly itself at this time (aka it doesn't support a JIT). There are a\n # number of annotations throughout the code which gates some tests on MIRI not\n # being run.\n #\n # Note that `cargo nextest` is used here additionally to get parallel test\n # execution by default to help cut down on the time in CI.\n miri:\n strategy:\n matrix:\n include:\n - crate: "wasmtime --features pulley"\n - crate: "wasmtime-cli"\n - crate: "wasmtime-environ --all-features"\n - crate: "pulley-interpreter --all-features"\n - script: ./ci/miri-provenance-test.sh\n needs: determine\n if: needs.determine.outputs.test-miri && github.repository == 'bytecodealliance/wasmtime'\n name: Miri\n runs-on: ubuntu-latest\n env:\n CARGO_NEXTEST_VERSION: 0.9.88\n MIRIFLAGS: -Zmiri-permissive-provenance\n steps:\n - uses: actions/checkout@v4\n with:\n submodules: true\n - uses: ./.github/actions/install-rust\n with:\n toolchain: wasmtime-ci-pinned-nightly\n - run: rustup component add rust-src miri\n - uses: actions/cache@v4\n with:\n path: ${{ runner.tool_cache }}/cargo-nextest\n key: cargo-nextest-bin-${{ env.CARGO_NEXTEST_VERSION }}\n - run: echo "${{ runner.tool_cache }}/cargo-nextest/bin" >> $GITHUB_PATH\n - run: cargo install --root ${{ runner.tool_cache }}/cargo-nextest --version ${{ env.CARGO_NEXTEST_VERSION }} cargo-nextest --locked\n - run: |\n cargo miri nextest run -j4 --no-fail-fast -p ${{ matrix.crate }}\n if: ${{ matrix.crate }}\n - run: ${{ matrix.script }}\n if: ${{ matrix.script }}\n\n # common logic to cancel the entire run if this job fails\n - uses: ./.github/actions/cancel-on-failure\n if: failure()\n\n # Perform release builds of `wasmtime` and `libwasmtime.so`. Builds a variety\n # of platforms and architectures and then uploads the release artifacts to\n # this workflow run's list of artifacts.\n #\n # Note that the full matrix is computed by `ci/build-build-matrix.js`.\n build:\n needs: determine\n if: needs.determine.outputs.run-full\n name: Release build for ${{ matrix.build }}\n runs-on: ${{ matrix.os }}\n strategy:\n fail-fast: ${{ github.event_name != 'pull_request' }}\n matrix: ${{ fromJson(needs.determine.outputs.build-matrix) }}\n env: ${{ matrix.env || fromJSON('{}') }}\n steps:\n - uses: actions/checkout@v4\n with:\n submodules: true\n\n - uses: ./.github/actions/install-ninja\n - uses: ./.github/actions/install-rust\n with:\n toolchain: ${{ matrix.rust }}\n - run: |\n rustup component add rust-src\n rustup target add ${{ matrix.target }}\n\n # On one builder produce the source tarball since there's no need to produce\n # it everywhere\n - run: ./ci/build-src-tarball.sh\n if: matrix.build == 'x86_64-linux'\n\n - uses: ./.github/actions/android-ndk\n if: contains(matrix.target, 'android')\n with:\n target: ${{ matrix.target }}\n\n - run: ./ci/build-release-artifacts.sh "${{ matrix.build }}" "${{ matrix.target }}"\n\n # Assemble release artifacts appropriate for this platform, then upload them\n # unconditionally to this workflow's files so we have a copy of them.\n - run: ./ci/build-tarballs.sh "${{ matrix.build }}" "${{ matrix.target }}"\n\n - uses: actions/upload-artifact@v4\n with:\n name: bins-${{ matrix.build }}\n path: dist\n\n # common logic to cancel the entire run if this job fails\n - uses: ./.github/actions/cancel-on-failure\n if: failure()\n\n # This is a "join node" which depends on all prior workflows. The merge queue,\n # for example, gates on this to ensure that everything has executed\n # successfully.\n #\n # Note that this is required currently for odd reasons with github. Notably\n # the set of checks to enter the merge queue and leave the merge queue must\n # be the same which means that the "build" step for example shows as skipped\n # for PRs but expands to many different steps for merge-queue-based PRs. That\n # means that for that step there's no single name to gate on, so it's required\n # to have a "join" node here which joins everything.\n #\n # Note that this currently always runs to always report a status, even on\n # cancellation and even if dependency steps fail. Each dependency tries to\n # cancel the whole run if it fails, so if a test matrix entry fails, for\n # example, it cancels the build matrix entries too. This step then tries to\n # fail on cancellation to ensure that the dependency failures are propagated\n # correctly.\n ci-status:\n name: Record the result of testing and building steps\n runs-on: ubuntu-latest\n needs:\n - test\n - test_capi\n - test_debug_dwarf\n - test_fuzzing\n - test_wasi_nn\n - test_nightly\n - build\n - rustfmt\n - clangformat\n - cargo_deny\n - cargo_vet\n - doc\n - micro_checks\n - special_tests\n - clippy\n - monolith_checks\n - platform_checks\n - bench\n - meta_deterministic_check\n - verify-publish\n - determine\n - miri\n - build-preview1-component-adapter\n - build-preview1-component-adapter-provider\n - test-min-platform-example\n - check_js\n if: always()\n steps:\n - name: Successful test and build\n if: ${{ !(contains(needs.*.result, 'failure')) }}\n run: exit 0\n - name: Failing test and build\n if: ${{ contains(needs.*.result, 'failure') }}\n run: exit 1\n - name: Report failure on cancellation\n if: ${{ contains(needs.*.result, 'cancelled') || cancelled() }}\n run: exit 1\n\n # The purpose of this jobs is to watch for changes on the `release-*`\n # branches of this repository and look for the term\n # "automatically-tag-and-release-this-commit" within merged PRs/commits. Once\n # that term is found the current version of `Cargo.toml`, the `wasmtime-cli`\n # Cargo.toml, is created as a tag and the tag is pushed to the repo.\n # Currently the tag is created through the GitHub API with an access token to\n # ensure that CI is further triggered for the tag itself which performs the\n # full release process.\n #\n # Note that this depends on the `ci-status` step above which is the "join"\n # point of this workflow for when everything succeeds. the purpose of that is\n # so that the tag is only created after the aftifacts have been uploaded for\n # this workflow as the `publish-artifacts.yml` workflow will download these\n # artifacts and then publish them to the tag.\n push-tag:\n runs-on: ubuntu-latest\n needs: ci-status\n if: |\n always()\n && needs.ci-status.result == 'success'\n && github.event_name == 'push'\n && startsWith(github.ref, 'refs/heads/release-')\n && github.repository == 'bytecodealliance/wasmtime'\n steps:\n - uses: actions/checkout@v4\n with:\n submodules: true\n fetch-depth: 0\n - name: Test if tag is needed\n run: |\n git log ${{ github.event.before }}...${{ github.event.after }} | tee main.log\n version=$(grep '^version =' Cargo.toml | head -n 1 | sed 's/.*"\(.*\)"/\1/')\n echo "version: $version"\n echo "version=$version" >> $GITHUB_OUTPUT\n echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT\n if grep -q "automatically-tag-and-release-this-commit" main.log; then\n echo push-tag\n echo "push_tag=yes" >> $GITHUB_OUTPUT\n else\n echo no-push-tag\n echo "push_tag=no" >> $GITHUB_OUTPUT\n fi\n id: tag\n - name: Push the tag\n run: |\n git_refs_url=$(jq .repository.git_refs_url $GITHUB_EVENT_PATH | tr -d '"' | sed 's/{\/sha}//g')\n curl -iX POST $git_refs_url \\n -H "Authorization: token ${{ secrets.PERSONAL_ACCESS_TOKEN }}" \\n -d @- << EOF\n {\n "ref": "refs/tags/v${{ steps.tag.outputs.version }}",\n "sha": "${{ steps.tag.outputs.sha }}"\n }\n EOF\n if: steps.tag.outputs.push_tag == 'yes'\n\n # File an issue on the repo if this run failed and was triggered via\n # `workflow_dispatch`, which mostly means that\n # `.github/workflows/trigger-release-branch-ci.yml` will file issues on\n # failure so we get to see a notification when a build fails for a historical\n # release branch.\n file-issue-on-error:\n name: File an issue if this build failed and was cron-triggered\n runs-on: ubuntu-latest\n needs: ci-status\n if: |\n always()\n && needs.ci-status.result != 'success'\n && github.event_name == 'workflow_dispatch'\n permissions:\n issues: write\n steps:\n - uses: actions/github-script@v7\n with:\n script: |\n github.rest.issues.create({\n owner: context.repo.owner,\n repo: context.repo.repo,\n title: `Failed CI build for ${context.ref}`,\n body: `See https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`,\n })\n | dataset_sample\yaml\bytecodealliance_wasmtime\.github\workflows\main.yml | main.yml | YAML | 50,692 | 0.75 | 0.139037 | 0.197978 | vue-tools | 254 | 2024-12-13T03:32:37.592333 | BSD-3-Clause | false | ca42ce7431d61ee5e4f15f0abc9b348b |
# This is a workflow triggered by PR or triggered manually\n# Runs quick performance tests and reports the comparison against HEAD\n# Test should take less than 10 minutes to run on current self-hosted devices\nname: "Performance Testing"\n\n# Controls when the action will run.\n# This workflow runs when manually triggered by keywords used in the start of a review comment\n# Currently that phrase is /bench_x64. /bench_aarch64 and /bench_all are TODOs.\non:\n issue_comment:\n types: [created]\n push:\n\n# Env variables\nenv:\n SG_COMMIT: 2ab01ac\n GITHUB_CONTEXT: ${{ toJson(github) }}\n\njobs:\n Wasmtime_Repo_On_PR_Comment:\n name: Benchmark x64 on PR comment Wasmtime repo\n runs-on: ubuntu-latest\n if: |\n (github.event_name == 'issue_comment') &&\n (github.event.issue.pull_request.url) &&\n (contains(github.event.comment.body, '/bench_x64')) &&\n (('abrown' == github.event.comment.user.login)\n || ('afonso360' == github.event.comment.user.login)\n || ('akirilov-arm' == github.event.comment.user.login)\n || ('alexcrichton' == github.event.comment.user.login)\n || ('bbouvier' == github.event.comment.user.login)\n || ('bjorn3' == github.event.comment.user.login)\n || ('cfallin' == github.event.comment.user.login)\n || ('elliottt' == github.event.comment.user.login)\n || ('fitzgen' == github.event.comment.user.login)\n || ('jameysharp' == github.event.comment.user.login)\n || ('jlb6740' == github.event.comment.user.login)\n || ('sparker-arm' == github.event.comment.user.login)\n || ('uweigand' == github.event.comment.user.login))\n steps:\n - run: echo "$GITHUB_CONTEXT"\n - run: |\n # Create and Push Branch\n git clone https://wasmtime-publish:${{secrets.PERSONAL_ACCESS_TOKEN}}@github.com/bytecodealliance/wasmtime-sightglass-benchmarking.git\n cd wasmtime-sightglass-benchmarking\n git remote add wasmtime ${{ github.event.repository.clone_url }}\n git fetch wasmtime refs/pull/*/merge:refs/remotes/wasmtime/pull/*/merge\n export issue_pr_url=${{ github.event.issue.pull_request.url }}\n export issue_commits_url=${{ github.event.issue.comments_url }}\n export issue_ref_name=$(curl -sSL $issue_pr_url | jq -r '.head.ref' | head -n 1)\n export issue_number=$(curl -sSL $issue_pr_url | jq -r '.number' | head -n 1)\n export issue_merge_commit_sha=$(curl -sSL $issue_pr_url | jq -r '.merge_commit_sha' | head -n 1)\n git submodule update --init --recursive\n git checkout wasmtime/pull/${issue_number}/merge -b pull/${issue_number}/merge/${issue_merge_commit_sha}\n git config user.name $(curl -sSL $issue_commits_url | jq -r '.[].commit.committer.name' | tail -n 1)\n git config user.email $(curl -sSL $issue_commits_url | jq -r '.[].commit.committer.email' | tail -n 1)\n git log -n 1\n git commit --allow-empty -m "${issue_commits_url}"\n git push origin --force pull/${issue_number}/merge/${issue_merge_commit_sha}\n git log -n 1\n\n Performance_Repo_On_Push:\n name: Benchmark x64 on push Performance repo\n runs-on: [self-hosted, linux, x64]\n if: (github.event_name == 'push') && (github.repository == 'bytecodealliance/wasmtime-sightglass-benchmarking')\n steps:\n - run: echo "$GITHUB_CONTEXT"\n - run: echo "${{ github.event.head_commit.message }}"\n - name: "Build sightglass commit '${{ env.SG_COMMIT }}'"\n run: |\n cd ../ && ls -l && rm -rf ./sightglass\n git clone https://github.com/bytecodealliance/sightglass.git && cd ./sightglass\n git checkout ${{env.SG_COMMIT}}\n cargo build --release\n\n - name: Checkout patch from bytecodealliance/wasmtime (pushed and triggering on this perf repo)\n uses: actions/checkout@v4\n with:\n submodules: true\n path: wasmtime_commit\n\n - run: rustup update nightly && rustup default nightly\n\n - name: Build patch from bytecodealliance/wasmtime (pushed and triggering on this perf repo)\n working-directory: ./wasmtime_commit\n run: |\n cargo --version\n cargo build --release -p wasmtime-bench-api\n cp target/release/libwasmtime_bench_api.so /tmp/wasmtime_commit.so\n\n - name: Checkout main from bytecodealliance/wasmtime\n uses: actions/checkout@v4\n with:\n ref: 'main'\n repository: 'bytecodealliance/wasmtime'\n submodules: true\n path: wasmtime_main\n\n - name: Build main from bytecodealliance/wasmtime\n working-directory: ./wasmtime_main\n run: |\n cargo build --release -p wasmtime-bench-api\n cp target/release/libwasmtime_bench_api.so /tmp/wasmtime_main.so\n\n - name: Run performance tests\n working-directory: ../sightglass\n run: |\n cargo run -- \\n benchmark \\n --processes 5 \\n --iterations-per-process 5 \\n --engine /tmp/wasmtime_main.so \\n --engine /tmp/wasmtime_commit.so \\n --output-file /tmp/results.txt\n\n - name: Print Results\n run: cat /tmp/results.txt\n\n - id: get-comment-body\n name: Create Results Body\n run: |\n body="$(cat /tmp/results.txt)"\n body="${body//'%'/'%25'}"\n body="${body//$'\n'/'%0A'}"\n body="${body//$'\r'/'%0D'}"\n echo "::set-output name=body::$body"\n\n - name: Publish Results\n run: |\n curl -X POST -H "Accept: application/vnd.github.v3+json" \\n -H "Authorization: token ${{ secrets.WASMTIME_PUBLISHING_TOKEN }}" \\n ${{ github.event.head_commit.message }} \\n -d '{"body": ${{ toJSON(steps.get-comment-body.outputs.body) }}}'\n | dataset_sample\yaml\bytecodealliance_wasmtime\.github\workflows\performance.yml | performance.yml | YAML | 5,805 | 0.8 | 0.015038 | 0.066667 | node-utils | 113 | 2023-07-22T04:33:00.853684 | MIT | false | f3af72fbc2b3d83f3b82cb6673341e09 |
name: Publish Artifacts\non:\n push:\n branches: [main]\n tags-ignore: [dev]\n\npermissions:\n contents: write\n id-token: write\n attestations: write\n\njobs:\n publish:\n name: Publish artifacts of build\n runs-on: ubuntu-latest\n if: github.repository == 'bytecodealliance/wasmtime'\n steps:\n - uses: actions/checkout@v4\n - uses: ./.github/actions/fetch-run-id\n - run: |\n gh run download ${COMMIT_RUN_ID}\n ls\n find bins-*\n env:\n GH_TOKEN: ${{ github.token }}\n\n - run: ./ci/merge-artifacts.sh\n\n # Deploy the `gh-pages.tar.gz` artifact to the `gh-pages` branch.\n - run: tar xf gh-pages.tar.gz\n working-directory: gh-pages\n - if: github.ref == 'refs/heads/main'\n uses: actions/configure-pages@v5\n - if: github.ref == 'refs/heads/main'\n uses: actions/upload-pages-artifact@v3\n with:\n path: "./gh-pages/gh-pages"\n\n - uses: actions/attest-build-provenance@v1\n with:\n subject-path: 'dist/*'\n\n - run: npm install --production\n working-directory: .github/actions/github-release\n - name: Publish Release\n uses: ./.github/actions/github-release\n with:\n files: "dist/*"\n token: ${{ github.token }}\n continue-on-error: true\n\n # See https://github.com/actions/deploy-pages\n deploy:\n name: Deploy gh-pages artifact\n if: github.ref == 'refs/heads/main'\n needs: publish\n permissions:\n pages: write\n id-token: write\n runs-on: ubuntu-latest\n environment:\n name: github-pages\n url: ${{ steps.deployment.outputs.page_url }}\n steps:\n - id: deployment\n uses: actions/deploy-pages@v4\n | dataset_sample\yaml\bytecodealliance_wasmtime\.github\workflows\publish-artifacts.yml | publish-artifacts.yml | YAML | 1,664 | 0.8 | 0.060606 | 0.033898 | awesome-app | 7 | 2025-02-17T21:10:33.572102 | Apache-2.0 | false | c3950c0f1d74c32e790f676b4bbe091b |
# The purpose of this workflow is to publish the wasmtime workspace of crates\n# whenever a wasmtime tag is created. This baiscally boils down to running\n# `scripts/publish.rs` at the right time.\n\nname: "Publish to crates.io"\n\non:\n push:\n tags:\n - 'v*'\n\njobs:\n publish:\n if: github.repository == 'bytecodealliance/wasmtime'\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n with:\n submodules: true\n - run: rustup update stable && rustup default stable\n - run: |\n rustc scripts/publish.rs\n ./publish publish\n env:\n CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}\n \n # Manifest and publish the wasi-preview1-component-adapter-provider\n - uses: ./.github/actions/fetch-run-id\n - uses: ./.github/actions/build-adapter-provider\n with:\n run-id: ${{ env.COMMIT_RUN_ID }}\n - run: cargo publish -p wasi-preview1-component-adapter-provider --allow-dirty\n env:\n CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}\n | dataset_sample\yaml\bytecodealliance_wasmtime\.github\workflows\publish-to-cratesio.yml | publish-to-cratesio.yml | YAML | 1,033 | 0.8 | 0.029412 | 0.133333 | react-lib | 760 | 2024-11-30T20:49:59.664258 | GPL-3.0 | false | 42cfde5bb12cb5f60abbea46a47c3271 |
# The purpose of this workflow is to orchestrate Wasmtime's release process as\n# much as possible. This specific workflow is responsible for a few timed parts\n# of the process:\n#\n# * On the 5th of every month a new release branch is automatically created and\n# the version number of the `main` branch is increased\n# * On the 20th of every month the previous release branch is published.\n#\n# This automation is all done through PRs except for the creation of the release\n# branch itself which is an write-action performed by this script. Otherwise\n# humans are ideally reviewing and rubber-stamping the output of the script all\n# other steps of the way.\n#\n# Note that this script also helps manage patch releases by sending a PR to the\n# release branch with a bumped version number for all crates with a patch-bump.\n\nname: "Automated Release Process"\non:\n schedule:\n # βAt 00:00 on day-of-month 5.β\n #\n # https://crontab.guru/#0_0_5_*_*\n - cron: '0 0 5 * *'\n - cron: '0 0 20 * *'\n\n # Allow manually triggering this request via the button at\n # https://github.com/bytecodealliance/wasmtime/actions/workflows/release-process.yml\n workflow_dispatch:\n inputs:\n action:\n description: 'Publish script argument: "cut", "release-latest", or "release-patch"'\n required: false\n default: 'cut'\n\npermissions:\n contents: write\n\njobs:\n release_process:\n if: "github.repository == 'bytecodealliance/wasmtime' || !github.event.schedule"\n name: Run the release process\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n with:\n submodules: true\n - name: Setup\n run: |\n rustc scripts/publish.rs\n git config user.name 'Wasmtime Publish'\n git config user.email 'wasmtime-publish@users.noreply.github.com'\n git remote set-url origin https://git:${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com/${{ github.repository }}\n\n - uses: ./.github/actions/install-rust\n - uses: ./.github/actions/install-cargo-vet\n\n - name: Bump major version number\n run: |\n set -ex\n # Push the current contents of `main` to a new release branch\n cur=$(./ci/print-current-version.sh)\n git push origin HEAD:release-$cur\n\n # Update version numbers and make a commit indicating that. Note that\n # on merge this will not trigger a publish.\n ./publish bump\n num=$(./ci/print-current-version.sh)\n\n # Remove all release notes for the current version now that the\n # release branch has been created. Additionally add an entry in the\n # list of all versions pointing to the release notes on the newly\n # created branch.\n sed -i '0,/-----------/d' RELEASES.md\n version_with_trailing_x=$(echo $cur | sed 's/.$/x/')\n sed -i "/ARCHIVE_START/a * [$version_with_trailing_x](https://github.com/${{ github.repository }}/blob/release-$cur/RELEASES.md)" RELEASES.md\n\n # Use `RELEASES-template.md` as the new release notes and then append\n # the archive of all historical releases to the end of it.\n cp RELEASES.md backup-releases\n sed "s/VERSION/$num/" ci/RELEASES-template.md > RELEASES.md\n cat backup-releases >> RELEASES.md\n rm backup-releases\n\n # Update `cargo vet` entries for all the new crate versions\n cargo vet\n\n # Commit all of the above changes.\n git commit -am "Bump Wasmtime to $num"\n\n # Push the result to a branch and setup metadata for the step below\n # that creates a PR\n git push origin HEAD:ci/bump-to-$num\n echo "PR_HEAD=ci/bump-to-$num" >> $GITHUB_ENV\n echo "PR_TITLE=Bump Wasmtime to $num" >> $GITHUB_ENV\n echo "PR_BASE=main" >> $GITHUB_ENV\n cat > pr-body <<-EOF\n This is an [automated pull request][process] from CI which indicates that the next [\`release-$cur\` branch][branch] has been created and the \`main\` branch is getting its version number bumped from $cur to $num.\n\n Maintainers should take a moment to review the [release notes][RELEASES.md] for $cur and any updates should be made directly to the [release branch][branch].\n\n Another automated PR will be made in roughly 2 weeks time when for the actual release itself.\n\n If any issues arise on the \`main\` branch before the release is made then the issue should first be fixed on \`main\` and then backport to the \`release-$cur\` branch.\n\n [RELEASES.md]: https://github.com/${{ github.repository }}/blob/release-$cur/RELEASES.md\n [branch]: https://github.com/${{ github.repository }}/tree/release-$cur\n [process]: https://docs.wasmtime.dev/contributing-release-process.html\n EOF\n if: >-\n github.event.schedule == '0 0 5 * *' ||\n github.event.inputs.action == 'cut'\n\n - name: Perform latest release\n run: |\n set -ex\n git fetch origin\n\n # Determine the latest release branch\n rustc ci/find-latest-release.rs -o /tmp/find-latest-release\n cur=`/tmp/find-latest-release`\n\n # Move to the most recent release branch, update the release date and\n # commit it, indicating that the commit is what will get tagged and\n # released\n git reset --hard origin/release-$cur\n git submodule update --init --recursive\n sed -i "s/^Unreleased/Released $(date +'%Y-%m-%d')/" RELEASES.md\n git commit --allow-empty -a -F-<<EOF\n Release Wasmtime $cur\n\n [automatically-tag-and-release-this-commit]\n EOF\n\n # Push the result to a branch and setup metadata for the step below\n # that creates a PR\n git push origin HEAD:ci/release-$cur\n echo "PR_HEAD=ci/release-$cur" >> $GITHUB_ENV\n echo "PR_TITLE=Release Wasmtime $cur" >> $GITHUB_ENV\n echo "PR_BASE=release-$cur" >> $GITHUB_ENV\n cat > pr-body <<-EOF\n This is an [automated pull request][process] from CI which is intended to notify maintainers that it's time to release Wasmtime $cur. The [release branch][branch] was created roughly two weeks ago and it's now time for it to be published and released.\n\n It's recommended that maintainers double-check that [RELEASES.md] is up-to-date and that there are no known issues before merging this PR. When this PR is merged a release tag will automatically created, crates will be published, and CI artifacts will be produced.\n\n [RELEASES.md]: https://github.com/${{ github.repository }}/blob/release-$cur/RELEASES.md\n [process]: https://docs.wasmtime.dev/contributing-release-process.html\n [branch]: https://github.com/${{ github.repository }}/tree/release-$cur\n EOF\n if: >-\n github.event.schedule == '0 0 20 * *' ||\n github.event.inputs.action == 'release-latest'\n\n - name: Bump and release patch version number\n run: |\n set -ex\n # Update version numbers on a patch basis and update RELEASES.md if a\n # patch release marker is already in there. Note that this commit\n # message indicates that on-merge a release will be made.\n ./publish bump-patch\n # Update `cargo vet` entries for all the new crate versions\n cargo vet\n sed -i "s/^Unreleased/Released $(date +'%Y-%m-%d')/" RELEASES.md\n num=$(./ci/print-current-version.sh)\n git commit -a -F-<<EOF\n Release Wasmtime $num\n\n [automatically-tag-and-release-this-commit]\n EOF\n\n # Push the result to a branch and setup metadata for the step below\n # that creates a PR\n git push origin HEAD:ci/bump-to-$num\n echo "PR_HEAD=ci/bump-to-$num" >> $GITHUB_ENV\n echo "PR_TITLE=Release Wasmtime $num" >> $GITHUB_ENV\n echo "PR_BASE=${{ github.ref_name }}" >> $GITHUB_ENV\n cat > pr-body <<-EOF\n This is an [automated pull request][process] from CI to create a patch release for Wasmtime $num, requested by @${{ github.actor }}.\n\n It's recommended that maintainers double-check that [RELEASES.md] is up-to-date and that there are no known issues before merging this PR. When this PR is merged a release tag will automatically be created, crates will be published, and CI artifacts will be produced.\n\n [RELEASES.md]: https://github.com/${{ github.repository }}/blob/release-$num/RELEASES.md\n [process]: https://docs.wasmtime.dev/contributing-release-process.html\n EOF\n\n if: github.event.inputs.action == 'release-patch'\n\n - name: Make a PR\n # Note that the syntax here is kinda funky, and the general gist is that\n # I couldn't figure out a good way to have a multiline string-literal\n # become a json-encoded string literal to send to GitHub. This\n # represents my best attempt.\n run: |\n set -ex\n body=$(jq -sR < ./pr-body)\n\n curl --include --request POST \\n https://api.github.com/repos/${{ github.repository }}/pulls \\n --header "Authorization: token ${{ secrets.PERSONAL_ACCESS_TOKEN }}" \\n --data @- << EOF\n {\n "head": "$PR_HEAD",\n "base": "$PR_BASE",\n "title": "$PR_TITLE",\n "body": $body,\n "maintainer_can_modify": true\n\n }\n EOF\n | dataset_sample\yaml\bytecodealliance_wasmtime\.github\workflows\release-process.yml | release-process.yml | YAML | 9,526 | 0.95 | 0.086538 | 0.278409 | node-utils | 494 | 2024-06-25T13:02:56.983152 | Apache-2.0 | false | 6dcb3c4f77c13d000d933a27cc98da7b |
name: "Issue / PR Triage"\n\non:\n issues:\n types: ["labeled"]\n schedule:\n # Run pull request triage once an hour. Ideally, this would be on\n # "labeled" types of pull request events, but that doesn't work if the pull\n # request is from another fork. For example, see\n # https://github.com/actions/labeler/issues/12\n - cron: '42 * * * *'\n\nconcurrency:\n group: issue-triage\n cancel-in-progress: true\n\njobs:\n triage:\n if: github.repository == 'bytecodealliance/wasmtime'\n runs-on: ubuntu-latest\n steps:\n\n # Automatically label PRs that touch certain directories with certain\n # labels.\n - uses: bytecodealliance/labeler@schedule-fork\n with:\n repo-token: "${{ secrets.GITHUB_TOKEN }}"\n continue-on-error: true\n\n # @-mention people who are subscribed to a label when an issue/PR is given\n # that label.\n - uses: bytecodealliance/subscribe-to-label-action@v1\n with:\n repo-token: "${{ secrets.GITHUB_TOKEN }}"\n continue-on-error: true\n\n # Leave pre-determined comments on issues/PRs that are given a certain label.\n - uses: bytecodealliance/label-messager-action@v1\n with:\n repo-token: "${{ secrets.GITHUB_TOKEN }}"\n continue-on-error: true\n | dataset_sample\yaml\bytecodealliance_wasmtime\.github\workflows\triage.yml | triage.yml | YAML | 1,239 | 0.8 | 0.04878 | 0.257143 | awesome-app | 808 | 2024-09-09T16:46:01.650345 | BSD-3-Clause | false | 63e803f295818f5a9112dbb9da69cc23 |
version: "{build}"\n\nimage: Visual Studio 2015\n\nskip_tags: true\n\nenvironment:\n matrix:\n - FEATURE: HUGE\n \n # Alternate environments, not used right now. 2022 is a lot slower.\n #\n # - job_name: VS-2015\n # appveyor_build_worker_image: Visual Studio 2015\n # FEATURE: HUGE\n\n # - job_name: VS-2017\n # appveyor_build_worker_image: Visual Studio 2017\n # FEATURE: HUGE\n\n # - job_name: VS-2019\n # appveyor_build_worker_image: Visual Studio 2019\n # FEATURE: HUGE\n\n # - job_name: VS-2022\n # appveyor_build_worker_image: Visual Studio 2022\n # FEATURE: HUGE\n\n# disabled\n# - FEATURE: TINY\n# - FEATURE: NORMAL\n\nmatrix:\n fast_finish: true\n\nbefore_build:\n - call ver\n - ci\appveyor.bat install\n\nbuild_script:\n - ci\appveyor.bat build\n\ntest_script:\n - ci\appveyor.bat test\n\nartifacts:\n - path: src/vim.exe\n name: vim\n - path: src/gvim.exe\n name: gvim\n\n# vim: sw=2 sts=2 et ts=8 sr\n | dataset_sample\yaml\c\.appveyor.yml | .appveyor.yml | YAML | 945 | 0.8 | 0 | 0.473684 | react-lib | 816 | 2024-11-13T20:52:59.337090 | GPL-3.0 | false | 265c3fe82b7d0fbed2e876c23aef8035 |
env:\n CIRRUS_CLONE_DEPTH: 3\n FEATURES: huge\n\nfreebsd_task:\n name: FreeBSD\n matrix:\n - name: FreeBSD 14.2\n freebsd_instance:\n image_family: freebsd-14-2\n timeout_in: 20m\n install_script:\n - pkg install -y gettext\n build_script:\n - NPROC=$(getconf _NPROCESSORS_ONLN)\n - ./configure --with-features=${FEATURES}\n - make -j${NPROC}\n test_script:\n - src/vim --version\n # run tests as user "cirrus" instead of root\n - pw useradd cirrus -m\n - chown -R cirrus:cirrus .\n - sudo -u cirrus make test\n on_failure:\n test_artifacts:\n name: "Cirrus-CI-freebsd-failed-tests"\n path: |\n runtime/indent/testdir/*.fail\n runtime/syntax/testdir/failed/*\n src/testdir/failed/*\n type: application/octet-stream\n | dataset_sample\yaml\c\.cirrus.yml | .cirrus.yml | YAML | 777 | 0.8 | 0 | 0.033333 | awesome-app | 966 | 2023-11-23T15:22:48.231973 | GPL-3.0 | false | 707f118d1890b0978a20bf44c951d147 |
coverage:\n range: "80...100"\n status:\n project:\n default:\n threshold: 0.05%\n\ncomment: false\n\n# Files not run by tests\nignore:\n - "src/dosinst.c"\n - "src/dosinst.h"\n - "src/uninstall.c"\n | dataset_sample\yaml\c\.codecov.yml | .codecov.yml | YAML | 205 | 0.8 | 0 | 0.083333 | vue-tools | 543 | 2024-10-05T14:01:04.277758 | GPL-3.0 | false | b18c661640051a315d3c97bdd76c085c |
coverage:\n status:\n patch:\n default:\n informational: true\n project:\n default:\n informational: true\n\ncomment:\n require_changes: false\n require_head: false\n require_base: false\n layout: "condensed_header, diff, files"\n hide_project_coverage: false\n behavior: default\n\ngithub_checks:\n annotations: false\n | dataset_sample\yaml\c\codecov.yml | codecov.yml | YAML | 339 | 0.85 | 0 | 0 | node-utils | 755 | 2024-07-23T12:52:33.512793 | GPL-3.0 | false | f4f996e10e325b199d5268b85cae72db |
version: 2\nupdates:\n - package-ecosystem: "github-actions"\n directory: "/"\n schedule:\n interval: "weekly"\n commit-message:\n prefix: "CI"\n | dataset_sample\yaml\c\dependabot.yml | dependabot.yml | YAML | 157 | 0.7 | 0 | 0 | python-kit | 369 | 2023-12-19T13:57:46.961699 | GPL-3.0 | false | 18aa9ff91a016cff59d3211731cc3748 |
# list of labels and minimatch globs to match to apply the label.\n\nCI:\n - all:\n - changed-files:\n - any-glob-to-any-file:\n - '.cirrus.yml'\n - '.github/dependabot.yml'\n - '.github/labeler.yml'\n - '.github/workflows/*'\n - '.appveyor.yml'\n - '.codecov.yml'\n\ndocumentation:\n - all:\n - changed-files:\n - any-glob-to-all-files:\n - '*/doc/*'\n\ntranslation:\n - all:\n - changed-files:\n - any-glob-to-any-file:\n - 'src/po/*.po'\n\nif_lua:\n - all:\n - changed-files:\n - any-glob-to-any-file:\n - 'src/if_lua.c'\n - 'src/proto/if_lua.pro'\n - 'runtime/doc/if_lua.txt'\n\nif_mzscheme:\n - all:\n - changed-files:\n - any-glob-to-any-file:\n - 'src/if_mzsch.c'\n - 'src/if_mzsch.h'\n - 'src/proto/if_mzsch.pro'\n - 'runtime/doc/if_mzsch.txt'\n\nif_perl:\n - all:\n - changed-files:\n - any-glob-to-any-file:\n - 'src/if_perl.xs'\n - 'src/if_perlsfio.c'\n - 'src/proto/if_perl.pro'\n - 'src/proto/if_perlsfio.pro'\n - 'runtime/doc/if_perl.txt'\n\nif_python:\n - all:\n - changed-files:\n - any-glob-to-any-file:\n - 'src/if_py_both.h'\n - 'runtime/doc/if_pyth.txt'\n - 'src/if_python.c'\n - 'src/if_python3.c'\n - 'src/proto/if_python.pro'\n - 'src/proto/if_python3.pro'\n\nif_ruby:\n - all:\n - changed-files:\n - any-glob-to-any-file:\n - 'src/if_ruby.c'\n - 'src/proto/if_ruby.pro'\n - 'runtime/doc/if_ruby.txt'\n\nif_tcl:\n - all:\n - changed-files:\n - any-glob-to-any-file:\n - 'src/if_tcl.c'\n - 'src/proto/if_tcl.pro'\n - 'runtime/doc/if_tcl.txt'\n\ninstaller:\n - all:\n - changed-files:\n - any-glob-to-any-file:\n - 'nsis/**'\n - 'src/dosinst.*'\n - 'src/uninstall.c'\n\nplatform-mac:\n - all:\n - changed-files:\n - any-glob-to-any-file:\n - 'src/INSTALLmac.txt'\n - 'src/os_mac*'\n - 'src/proto/os_mac*'\n\nplatform-windows:\n - all:\n - changed-files:\n - any-glob-to-any-file:\n - 'nsis/**'\n - 'src/*.bat'\n - 'src/*.bmp'\n - 'src/*.ico'\n - 'src/GvimExt/*'\n - 'src/INSTALLpc.txt'\n - 'src/Make_cyg*.mak'\n - 'src/Make_ming.mak'\n - 'src/Make_mvc.mak'\n - 'src/dosinst.*'\n - 'src/gui_dwrite.*'\n - 'src/gui_w32*'\n - 'src/if_ole.*'\n - 'src/iid_ole.c'\n - 'src/os_mswin*'\n - 'src/os_w32*'\n - 'src/os_win32.*'\n - 'src/proto/gui_w32.pro'\n - 'src/proto/os_mswin.pro'\n - 'src/proto/os_win32.pro'\n - 'src/proto/winclip.pro'\n - 'src/uninstall.c'\n - 'src/vim.manifest'\n - 'src/vim.rc'\n - 'src/vimrun.c'\n - 'src/winclip.c'\n - 'src/xpm/**'\n - 'src/xpm_w32.*'\n\nruntime:\n - all:\n - changed-files:\n - any-glob-to-any-file:\n - 'runtime/ftplugin'\n - 'runtime/syntax'\n - 'runtime/indent'\n - 'runtime/pack/dist/opt/termdebug/plugin/termdebug.vim'\n\ntermdebug:\n - all:\n - changed-files:\n - any-glob-to-any-file:\n - 'runtime/pack/dist/opt/termdebug/plugin/termdebug.vim'\n\nplugin-netrw:\n - all:\n - changed-files:\n - any-glob-to-any-file:\n - 'runtime/plugin/netrwPlugin.vim'\n - 'runtime/autoload/netrw*'\n\nxxd:\n - all:\n - changed-files:\n - any-glob-to-any-file:\n - 'src/xxd/*'\n | dataset_sample\yaml\c\labeler.yml | labeler.yml | YAML | 3,431 | 0.8 | 0 | 0.007194 | vue-tools | 373 | 2023-10-02T03:24:06.008983 | GPL-3.0 | false | 020f3bb82150f51b232457656fe3c1df |
# These are supported funding model platforms\n\ngithub: causefx \npatreon: organizr\nopen_collective: # Replace with a single Open Collective username\nko_fi: # Replace with a single Ko-fi username\ntidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel\ncommunity_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry\ncustom: # Replace with a single custom sponsorship URL\n | dataset_sample\yaml\causefx_Organizr\.github\FUNDING.yml | FUNDING.yml | YAML | 427 | 0.8 | 0 | 0.125 | node-utils | 459 | 2024-02-14T04:29:45.833657 | GPL-3.0 | false | d5264a5bbc53917337a7607079a648f8 |
name: Lock closed stale issue\n\non:\n issues:\n types: [closed]\n\njobs:\n lock:\n if: github.event.label.name == 'closed-no-issue-activity'\n runs-on: ubuntu-latest\n steps:\n - uses: OSDKDev/lock-issues@v1.1\n with:\n repo-token: "${{ secrets.GITHUB_TOKEN }}"\n | dataset_sample\yaml\causefx_Organizr\.github\workflows\lock.yml | lock.yml | YAML | 285 | 0.7 | 0.071429 | 0 | react-lib | 266 | 2023-10-23T13:28:04.638074 | Apache-2.0 | false | 2f5686a840584bef7425b58dbe32c440 |
name: Close stale issues\n\non:\n schedule:\n - cron: "30 3 * * *"\n\njobs:\n stale:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/stale@v3\n with:\n repo-token: ${{ secrets.GITHUB_TOKEN }}\n stale-issue-message: "This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs."\n close-issue-message: "This issue has been closed due to lack of activity, if this issue still persists, please re-open it."\n close-issue-label: "closed-no-issue-activity"\n stale-issue-label: "no-issue-activity"\n days-before-stale: 15\n days-before-close: 90\n exempt-issue-labels: "bypass-activity"\n exempt-pr-labels: "bypass-activity"\n | dataset_sample\yaml\causefx_Organizr\.github\workflows\stale.yml | stale.yml | YAML | 786 | 0.7 | 0.095238 | 0 | vue-tools | 933 | 2024-10-21T12:37:35.775987 | MIT | false | cbfaa4ee35adb2951b65953381ec4156 |
filter:\n excluded_paths:\n - tests/*\n - src/Schemas/*\nbuild:\n nodes:\n analysis:\n tests:\n override:\n - command: php-scrutinizer-run\n | dataset_sample\yaml\causefx_Organizr\api\vendor\adldap2\adldap2\.scrutinizer.yml | .scrutinizer.yml | YAML | 202 | 0.8 | 0 | 0 | awesome-app | 896 | 2023-08-14T02:49:23.855665 | BSD-3-Clause | false | 4d41d1cb58ee8b03fe23511eed47c51f |
language: php\n\nphp:\n - 7.1\n - 7.2\n - 7.3\n - 7.4\n\nbefore_script:\n - travis_retry composer self-update\n - travis_retry composer install --prefer-source --no-interaction\n\nscript: ./vendor/bin/simple-phpunit\n\nbranches:\n only:\n - master\n - v9.0\n - v8.0\n | dataset_sample\yaml\causefx_Organizr\api\vendor\adldap2\adldap2\.travis.yml | .travis.yml | YAML | 264 | 0.7 | 0 | 0 | react-lib | 696 | 2024-07-25T13:24:45.979968 | BSD-3-Clause | false | 66c5574928173bbd5c46f3cc8da31ce3 |
filter:\n excluded_paths: [tests/*]\nchecks:\n php:\n code_rating: true\n remove_extra_empty_lines: true\n remove_php_closing_tag: true\n remove_trailing_whitespace: true\n fix_use_statements:\n remove_unused: true\n preserve_multiple: false\n preserve_blanklines: true\n order_alphabetically: true\n fix_php_opening_tag: true\n fix_linefeed: true\n fix_line_ending: true\n fix_identation_4spaces: true\n fix_doc_comments: true\ntools:\n external_code_coverage:\n timeout: 600\n runs: 3\n php_analyzer: true\n php_code_coverage: false\n php_code_sniffer:\n config:\n standard: PSR2\n filter:\n paths: ['src']\n php_loc:\n enabled: true\n excluded_dirs: [vendor, tests]\n php_cpd:\n enabled: true\n excluded_dirs: [vendor, tests] | dataset_sample\yaml\causefx_Organizr\api\vendor\bogstag\oauth2-trakt\.scrutinizer.yml | .scrutinizer.yml | YAML | 910 | 0.8 | 0 | 0 | vue-tools | 407 | 2025-06-02T07:35:23.174985 | Apache-2.0 | false | 088f305ac27adfeeb330e0edef5c4724 |
language: php\n\nsudo: false\n\nphp:\n - 5.6\n - 7.0\n - 7.1\n - hhvm\n\nmatrix:\n include:\n - php: 5.6\n env: 'COMPOSER_FLAGS="--prefer-stable --prefer-lowest"'\n\nbefore_script:\n - travis_retry composer self-update\n - travis_retry composer install --no-interaction --prefer-source --dev\n - travis_retry phpenv rehash\n\nscript:\n - ./vendor/bin/phpcs --standard=psr2 src/\n - ./vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover\n\nafter_script:\n - wget https://scrutinizer-ci.com/ocular.phar\n - php ocular.phar code-coverage:upload --format=php-clover coverage.clover | dataset_sample\yaml\causefx_Organizr\api\vendor\bogstag\oauth2-trakt\.travis.yml | .travis.yml | YAML | 588 | 0.8 | 0 | 0 | python-kit | 770 | 2024-11-16T23:36:58.062311 | GPL-3.0 | false | 80128b13d654fc724feb666ee28d0184 |
build: off\ncache:\n - c:\php7 -> appveyor.yml\n - '%LOCALAPPDATA%\Composer\files -> appveyor.yml'\n\nclone_folder: c:\projects\dibi\n\nservices:\n - mssql2012sp1\n# - mssql2014\n - mysql\n\ninit:\n - SET PATH=c:\php7;%PATH%\n - SET ANSICON=121x90 (121x90)\n\ninstall:\n # Install PHP 7.2\n - IF EXIST c:\php7 (SET PHP=0) ELSE (SET PHP=1)\n - IF %PHP%==1 mkdir c:\php7\n - IF %PHP%==1 cd c:\php7\n - IF %PHP%==1 curl https://windows.php.net/downloads/releases/archives/php-7.2.18-Win32-VC15-x64.zip --output php.zip\n - IF %PHP%==1 7z x php.zip >nul\n - IF %PHP%==1 echo extension_dir=ext >> php.ini\n - IF %PHP%==1 echo extension=php_openssl.dll >> php.ini\n - IF %PHP%==1 curl https://github.com/microsoft/msphpsql/releases/download/v5.8.0/Windows-7.2.zip -L --output sqlsrv.zip\n - IF %PHP%==1 7z x sqlsrv.zip >nul\n - IF %PHP%==1 copy Windows-7.2\x64\php_sqlsrv_72_ts.dll ext\php_sqlsrv_ts.dll\n - IF %PHP%==1 del /Q *.zip\n\n # Install Microsoft Access Database Engine x64\n - IF %PHP%==1 curl https://download.microsoft.com/download/2/4/3/24375141-E08D-4803-AB0E-10F2E3A07AAA/AccessDatabaseEngine_X64.exe --output AccessDatabaseEngine_X64.exe\n - cmd /c start /wait AccessDatabaseEngine_X64.exe /passive\n\n # Install Nette Tester\n - cd c:\projects\dibi\n - appveyor DownloadFile https://getcomposer.org/composer.phar\n - php composer.phar install --prefer-dist --no-interaction --no-progress\n\n # Create databases.ini\n - copy tests\databases.appveyor.ini tests\databases.ini\n\ntest_script:\n - vendor\bin\tester tests -s -p c:\php7\php -c tests\php-win.ini\n\non_failure:\n # Print *.actual content\n - for /r %%x in (*.actual) do ( type "%%x" )\n | dataset_sample\yaml\causefx_Organizr\api\vendor\dibi\dibi\appveyor.yml | appveyor.yml | YAML | 1,703 | 0.8 | 0.020833 | 0.153846 | vue-tools | 426 | 2023-07-14T23:27:47.788721 | GPL-3.0 | false | a7194b3815b48faea9ba4a63b01133a4 |
name: BC Check\n\non:\n pull_request:\n\njobs:\n roave-bc-check:\n name: Roave BC Check\n runs-on: ubuntu-latest\n\n steps:\n - name: Checkout code\n uses: actions/checkout@v2\n\n - name: Roave BC Check\n uses: docker://nyholm/roave-bc-check-ga\n | dataset_sample\yaml\causefx_Organizr\api\vendor\guzzlehttp\psr7\.github\workflows\bc.yml | bc.yml | YAML | 265 | 0.8 | 0 | 0 | awesome-app | 291 | 2025-04-02T19:44:46.386584 | GPL-3.0 | false | 26dfdca9d37d7a825c6c3f2933eae459 |
name: CI\n\non:\n pull_request:\n\njobs:\n build:\n name: Build\n runs-on: ubuntu-latest\n strategy:\n max-parallel: 10\n matrix:\n php: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4']\n\n steps:\n - name: Set up PHP\n uses: shivammathur/setup-php@v2\n with:\n php-version: ${{ matrix.php }}\n coverage: 'none'\n extensions: mbstring\n\n - name: Checkout code\n uses: actions/checkout@v2\n\n - name: Install dependencies\n run: composer update --no-interaction --no-progress --prefer-dist\n\n - name: Run tests\n run: make test\n | dataset_sample\yaml\causefx_Organizr\api\vendor\guzzlehttp\psr7\.github\workflows\ci.yml | ci.yml | YAML | 607 | 0.7 | 0 | 0 | awesome-app | 394 | 2025-04-03T13:01:29.096504 | BSD-3-Clause | false | 792f7525150ed7626fc0964cd94eb418 |
name: Integration\n\non:\n pull_request:\n\njobs:\n\n build:\n name: Test\n runs-on: ubuntu-latest\n strategy:\n max-parallel: 10\n matrix:\n php: ['7.2', '7.3', '7.4', '8.0']\n\n steps:\n - name: Set up PHP\n uses: shivammathur/setup-php@v2\n with:\n php-version: ${{ matrix.php }}\n coverage: none\n\n - name: Checkout code\n uses: actions/checkout@v2\n\n - name: Download dependencies\n uses: ramsey/composer-install@v1\n with:\n composer-options: --no-interaction --prefer-dist --optimize-autoloader\n\n - name: Start server\n run: php -S 127.0.0.1:10002 tests/Integration/server.php &\n\n - name: Run tests\n env:\n TEST_SERVER: 127.0.0.1:10002\n run: ./vendor/bin/phpunit --testsuite Integration\n | dataset_sample\yaml\causefx_Organizr\api\vendor\guzzlehttp\psr7\.github\workflows\integration.yml | integration.yml | YAML | 814 | 0.7 | 0 | 0 | vue-tools | 302 | 2023-12-19T07:13:42.183572 | BSD-3-Clause | false | ada81780b7e8fbc4cc94b3440808ce5d |
name: Static analysis\n\non:\n pull_request:\n\njobs:\n php-cs-fixer:\n name: PHP-CS-Fixer\n runs-on: ubuntu-latest\n\n steps:\n - name: Checkout code\n uses: actions/checkout@v2\n\n - name: Setup PHP\n uses: shivammathur/setup-php@v2\n with:\n php-version: '7.4'\n coverage: none\n extensions: mbstring\n\n - name: Download dependencies\n run: composer update --no-interaction --no-progress\n\n - name: Download PHP CS Fixer\n run: composer require "friendsofphp/php-cs-fixer:2.18.4"\n\n - name: Execute PHP CS Fixer\n run: vendor/bin/php-cs-fixer fix --diff-format udiff --dry-run\n | dataset_sample\yaml\causefx_Organizr\api\vendor\guzzlehttp\psr7\.github\workflows\static.yml | static.yml | YAML | 660 | 0.85 | 0 | 0 | react-lib | 627 | 2023-11-05T06:11:03.180721 | MIT | false | da5fe7431ad6b98e9d54790e600d9e5b |
language: php\n\nphp:\n - '7.1'\n - '7.2'\n - '7.3'\n\nbefore_script:\n - composer install\n\nscript:\n - vendor/bin/phpunit\n\nafter_success:\n - travis_retry php vendor/bin/php-coveralls -v\n\nenv:\n global:\n secure: "i44lDLUcbe719n7Gya3y1iwC+RJbCGarV9OFxY/dSoufDEzd9X0YzqHXg5myvpeDJbp7E1X2rR7Hq5tfB655v6fBDF/gc8KY2zsuswPGRPGAXoT/eRBwUrt0MB9JyC5gxuMvcKBTChWOWGb9QsT7+FQwWthJ+PtrznOQvmAzx73kijXGO9+/PRgpiV6lSpVobmFpDJP9LAuAscrBRpDA/w99d38cNrKgP8E0HX30v8ooMhdumcSmaG2HSD66LE6m1vSPywPlzddb4rAnNczKgx3Bj/buQOGzWjWANROqAleImcGqSIqkdolY0ugQFQlxTkG4Ti8BD+Mka+dQeEjVQGeSBAo8lYjk1ZpFi0n360yhuJDkPPKCSJQsF2rJ+OuYqH3ht7GCtlpX2Tm3Bxgy6opJbSJ7NQVSgcaRPhzYI+eXNCPpYotdRLeCq+1YJ0OmT2VAH5ydA0Qgo7qORLp3KxZqro1A1fcNK7Z1exer1fud9j3UQ8Rqy9RzMyNQbJ8X4sgQqSocjMPt0oBC3mTmfdFywJcFGVGcRvMZrP+lZ2hCz4/n5DxV1QwDcuuOemsdQfvK4iOiHraDHpsHcL5HMIe8Q6hsIBsDneIG1kjL1g62L4dMv8KWb5HvrB1oa88boTd988pUoj2bL3gZh4kp+LKmuaLacOC2FzJhAO7zWP0="\n | dataset_sample\yaml\causefx_Organizr\api\vendor\nekonomokochan\php-json-logger\.travis.yml | .travis.yml | YAML | 899 | 0.7 | 0 | 0 | react-lib | 668 | 2024-10-31T10:16:33.715750 | MIT | false | 696250ca398707a2c51cbe02ec0893ac |
version: '3.5'\nservices:\n app:\n container_name: php_json_logger_app\n build:\n context: .\n dockerfile: ./docker/Dockerfile\n environment:\n PHP_JSON_LOGGER_SLACK_TOKEN: ${PHP_JSON_LOGGER_SLACK_TOKEN}\n PHP_JSON_LOGGER_SLACK_CHANNEL: ${PHP_JSON_LOGGER_SLACK_CHANNEL}\n volumes:\n - .:/app/php-json-logger\n | dataset_sample\yaml\causefx_Organizr\api\vendor\nekonomokochan\php-json-logger\docker-compose.yml | docker-compose.yml | YAML | 335 | 0.7 | 0 | 0 | node-utils | 415 | 2025-01-27T21:06:13.962484 | BSD-3-Clause | false | 19151623aa5816f868727d16b97f8ab8 |
sudo: false\nlanguage: php\n\nphp:\n - 5.4\n - 5.5\n - 5.6\n - 7.0\n - 7.1\n - 7.2\n - hhvm\n\nscript:\n - ./vendor/bin/phpunit\n\nbefore_install:\n - travis_retry composer self-update\n\ninstall:\n - composer install\n | dataset_sample\yaml\causefx_Organizr\api\vendor\nikic\fast-route\.travis.yml | .travis.yml | YAML | 209 | 0.7 | 0 | 0 | react-lib | 189 | 2023-07-13T19:57:28.959726 | GPL-3.0 | false | 76bf6e88dae74abb06f2f9c948bb9bfa |
filter:\n paths: [src/*]\n excluded_paths: [tests/*]\nchecks:\n php:\n code_rating: true\n remove_extra_empty_lines: true\n remove_php_closing_tag: true\n remove_trailing_whitespace: true\n fix_use_statements:\n remove_unused: true\n preserve_multiple: false\n preserve_blanklines: true\n order_alphabetically: true\n fix_php_opening_tag: true\n fix_linefeed: true\n fix_line_ending: true\n fix_identation_4spaces: true\n fix_doc_comments: true\ntools:\n external_code_coverage:\n timeout: 600\n runs: 3\n php_code_coverage: false\n php_code_sniffer:\n config:\n standard: PSR2\n filter:\n paths: ['src']\n php_loc:\n enabled: true\n excluded_dirs: [vendor, test]\n php_cpd:\n enabled: true\n excluded_dirs: [vendor, test]\nbuild:\n nodes:\n analysis:\n tests:\n override:\n - php-scrutinizer-run\n | dataset_sample\yaml\causefx_Organizr\api\vendor\paquettg\php-html-parser\.scrutinizer.yml | .scrutinizer.yml | YAML | 1,028 | 0.8 | 0 | 0 | vue-tools | 942 | 2024-04-29T07:57:23.887076 | GPL-3.0 | false | c1ecaa59d56a1ad03063a95340e0fe02 |
# These are supported funding model platforms\n\n# github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]\n# patreon: # Replace with a single Patreon username\n# open_collective: # Replace with a single Open Collective username\n# ko_fi: # Replace with a single Ko-fi username\ntidelift: "packagist/paquettg/php-html-parser"\n# community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry\n# liberapay: # Replace with a single Liberapay username\n# issuehunt: # Replace with a single IssueHunt username\n# otechie: # Replace with a single Otechie username\n# custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']\n | dataset_sample\yaml\causefx_Organizr\api\vendor\paquettg\php-html-parser\.github\FUNDING.yml | FUNDING.yml | YAML | 690 | 0.8 | 0 | 0.909091 | react-lib | 457 | 2024-06-01T00:00:39.813573 | BSD-3-Clause | false | 579be08236e1c7d8ba442678ad0158fa |
language: php\n\nphp:\n - 7.1\n - 7.2\n - 7.3\n\ninstall:\n - composer self-update\n - composer install\n\nscript:\n phpunit\n\n | dataset_sample\yaml\causefx_Organizr\api\vendor\paquettg\string-encode\.travis.yml | .travis.yml | YAML | 120 | 0.7 | 0 | 0 | awesome-app | 229 | 2025-04-06T06:47:31.557574 | MIT | false | d909d7e169b6eb20522dfaa99242be82 |
language: php\nsudo: false\n\nphp:\n - "7.0"\n - "7.1"\n - "7.2"\n\nmatrix:\n fast_finish: true\n\ninstall:\n - composer self-update\n - composer update\n\nscript:\n - vendor/bin/phpunit\n - vendor/bin/psalm\n | dataset_sample\yaml\causefx_Organizr\api\vendor\paragonie\constant_time_encoding\.travis.yml | .travis.yml | YAML | 215 | 0.7 | 0 | 0 | awesome-app | 617 | 2024-06-20T16:10:39.988696 | GPL-3.0 | false | e699a5e2e69ef01c948a3efd4f61ecac |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.