v1.9.0 #145
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: Quality | |
on: | |
push: | |
branches: | |
- main | |
- release | |
pull_request: | |
jobs: | |
build: | |
name: Build library | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Prepare ✅ | |
uses: ./.github/actions/prepare | |
- name: Build 🔧 | |
run: npm run build | |
docs: | |
name: Build docs | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Prepare ✅ | |
uses: ./.github/actions/prepare | |
- name: Build Sassdoc 💄 | |
run: npm run build:sassdoc | |
- name: Build Storybook 📚 | |
run: npm run build:stories | |
- name: Build docs 📄 | |
run: npm run build:docs | |
env: | |
BASE_URL: /design-system/ | |
cspell: | |
name: Spell check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Prepare ✅ | |
uses: ./.github/actions/prepare | |
- name: CSpell ✏️ | |
run: npm run cspell | |
eslint: | |
name: ESLint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Prepare ✅ | |
uses: ./.github/actions/prepare | |
- name: ESLint ✨ | |
run: npm run lint:es | |
stylelint: | |
name: Stylelint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Prepare ✅ | |
uses: ./.github/actions/prepare | |
- name: Stylelint ✨ | |
run: npm run lint:style | |
prettier: | |
name: Prettier | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Prepare ✅ | |
uses: ./.github/actions/prepare | |
- name: Prettier ✨ | |
run: npm run lint:prettier | |
test: | |
name: Test | Node ${{ matrix.node }} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
node: [16, 18, 20] | |
env: | |
COVERAGE_VERSION: 20 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Prepare ✅ | |
uses: ./.github/actions/prepare | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Test 🧪 | |
run: npm run coverage | |
- name: Codecov ☂ | |
uses: codecov/codecov-action@v4 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
if: ${{ matrix.node == env.COVERAGE_VERSION }} | |
with: | |
directory: coverage |