dependency: update @biomejs/biome
from 1.8.1 to 1.8.2
#69
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "JSON" | |
on: | |
push: | |
branches: | |
- "main" | |
paths: | |
- "**.json" | |
pull_request: | |
paths: | |
- "**.json" | |
concurrency: | |
group: "${{ github.workflow }}-${{ github.ref }}" | |
cancel-in-progress: true | |
env: | |
SEARCH_PATTERN: "**.json" | |
jobs: | |
formatter: | |
name: "Formatter" | |
runs-on: "${{ vars.DEFAULT_UBUNTU }}" | |
steps: | |
- name: "Set up repository with all history" | |
uses: "actions/checkout@v4.1.7" | |
with: | |
fetch-depth: 0 | |
- name: "Get all changed files" | |
id: "json-files" | |
uses: "tj-actions/changed-files@v44.5.2" | |
with: | |
files: "${{ env.SEARCH_PATTERN }}" | |
- name: "Set up formatter" | |
uses: "biomejs/setup-biome@v2.2.1" | |
- name: "Run formatter for all changed files" | |
run: "biome format ${{ steps.json-files.outputs.all_changed_files }}" | |
linter: | |
name: "Linter" | |
runs-on: "${{ vars.DEFAULT_UBUNTU }}" | |
steps: | |
- name: "Set up repository with all history" | |
uses: "actions/checkout@v4.1.7" | |
with: | |
fetch-depth: 0 | |
- name: "Get all changed files" | |
id: "json-files" | |
uses: "tj-actions/changed-files@v44.5.2" | |
with: | |
files: "${{ env.SEARCH_PATTERN }}" | |
- name: "Set up linter" | |
uses: "biomejs/setup-biome@v2.2.1" | |
- name: "Run linter for all changed files" | |
run: "biome lint ${{ steps.json-files.outputs.all_changed_files }}" |