CI: Add commit and biome lint to CI #1
Workflow file for this run
This file contains hidden or 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: Lint and Biome Check | |
# Run the workflow when code is pushed or when a pull request is created | |
on: | |
push: | |
branches: | |
- '**' | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lint-and-biome: | |
name: Lint Commit and Run Biome | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the repository so the workflow has access to the code | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
# Run the lint-commit.sh script | |
- name: Run lint-commit.sh | |
run: scripts/lint-commit.sh .git/COMMIT_EDITMSG | |
# Run the run-biome.sh script | |
- name: Run run-biome.sh | |
run: scripts/run-biome.sh |