Skip to content

feat!: automatically detect biome version from dependencies #103

feat!: automatically detect biome version from dependencies

feat!: automatically detect biome version from dependencies #103

Workflow file for this run

name: Test
on:
push:
branches: [ main, "releases/v*"]
pull_request:
workflow_dispatch:
jobs:
test:
name: Test it downloads the specified version
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
version: [ "latest", "1.4.1" ]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Biome CLI
uses: ./
with:
version: ${{ matrix.version }}
- name: Retrieve the version
id: version
run: echo "version=$(biome --version)" >> "$GITHUB_OUTPUT"
- name: Check equality
run: |
if [ "Version: ${{ matrix.version }}" == "${{ steps.version.outputs.version }}" ]; then
exit 0
else
echo "Versions do not match"
exit 1
fi