chore(format): add endOfLine rule to prettier configuration #175
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: | |
validate: | |
name: β Validate project | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- name: β¬οΈ Checkout project | |
uses: actions/checkout@v3 | |
- name: π’ Setup NodeJS ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: npm | |
- name: π₯ Install dependencies | |
run: npm ci | |
- name: ποΈ Check types | |
run: npm run check:types | |
- name: π Check format | |
run: npm run check:format | |
- name: π Check lint | |
run: npm run check:lint | |
- name: π Check html | |
run: npm run check:html | |
- name: π Check scss | |
run: npm run check:scss | |
- name: π‘ Check i18n | |
run: npm run check:i18n | |
- name: π€ Check spelling | |
run: npm run check:spelling | |
test: | |
name: π§βπ¬ Test project | |
runs-on: ubuntu-latest | |
needs: validate | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- name: β¬οΈ Checkout project | |
uses: actions/checkout@v3 | |
- name: π’ Setup NodeJS ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: npm | |
- name: π₯ Install dependencies | |
run: npm ci | |
- name: π§ͺ Run the tests | |
run: npm run test:coverage | |
build: | |
name: π§° Build project | |
runs-on: ubuntu-latest | |
needs: test | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- name: β¬οΈ Checkout project | |
uses: actions/checkout@v3 | |
- name: π’ Setup NodeJS ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: npm | |
- name: π₯ Install dependencies | |
run: npm ci | |
- name: βοΈ Build project in SSR mode | |
run: npm run build:ssr:prod |