FEAT: Setting up Development Environment #1
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
# CI Workflow: Biome JS | Flows | |
# | |
# This workflow automates the process of checking code style using Biome. | |
# It is triggered on push and pull request events to the main branch. | |
# | |
# Jobs: | |
# 1. **style-checker**: This job checks the code style using Biome. It installs the necessary | |
# dependencies and runs the `biome:check` script defined in the `package.json` file. | |
name: "CI: Biome JS | Flows" | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
paths: | |
- flows/** | |
permissions: | |
contents: read | |
jobs: | |
# Job to check code style using Biome | |
style-checker: | |
runs-on: ubuntu-latest | |
steps: | |
# Step to checkout the repository | |
- name: Checkout | |
uses: actions/checkout@v4 | |
# Step to setup Node.js environment | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: npm | |
# Step to install dependencies and run Biome check | |
- name: Install dependencies and run biome | |
run: | | |
cd flows | |
npm install | |
npm run biome:check |