Aller au contenu

Continuous Integration

Ce contenu n’est pas encore disponible dans votre langue.

Running Biome in a CI environment is easy. Check out the following examples for some inspiration.

We provide a first-party GitHub Action to setup Biome in your runner. Here’s what a simple workflow might look like:

pull_request.yml
name: Code quality
on:
push:
pull_request:
jobs:
quality:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Biome
uses: biomejs/setup-biome@v2
with:
version: latest
- name: Run Biome
run: biome ci .

These are actions maintained by other communities, that you use in your runner:

  • reviewdog-action-biome: run Biome with reviewdog and make comments and commit suggestions on the pull request.
pull_request.yml
name: reviewdog
on: [pull_request]
jobs:
biome:
name: runner / Biome
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: mongolyy/reviewdog-action-biome@v1
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review