dependency: update @biomejs/biome
from 1.9.0 to 1.9.1
#158
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/[email protected]" | |
with: | |
fetch-depth: 0 | |
- name: "Get all changed files" | |
id: "json-files" | |
uses: "tj-actions/[email protected]" | |
with: | |
files: "${{ env.SEARCH_PATTERN }}" | |
- name: "Set up formatter" | |
uses: "biomejs/[email protected]" | |
- 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/[email protected]" | |
with: | |
fetch-depth: 0 | |
- name: "Get all changed files" | |
id: "json-files" | |
uses: "tj-actions/[email protected]" | |
with: | |
files: "${{ env.SEARCH_PATTERN }}" | |
- name: "Set up linter" | |
uses: "biomejs/[email protected]" | |
- name: "Run linter for all changed files" | |
run: "biome lint ${{ steps.json-files.outputs.all_changed_files }}" |