ci(linter): add Solvro config #4
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: CI | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
cache: "npm" | |
- name: Install dependencies | |
run: npm ci | |
- name: Set up AdonisJS environment | |
run: | | |
cp .env.example .env | |
node ace generate:key | |
- name: Check commit name | |
if: github.event_name == 'pull_request' | |
run: npx commitlint -f ${{ github.event.pull_request.base.sha }} | |
- name: Run prettier | |
run: npm run format:check | |
if: always() | |
- name: Run Lint | |
run: npm run lint | |
if: always() | |
- name: Check types | |
run: npm run typecheck | |
if: always() | |
- name: Run tests | |
run: npm test | |
if: always() | |
- name: Build | |
run: npm run build | |
if: always() |