Tabs Component #836
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
# cSpell:ignore coverallsapp | |
name: Integration | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
env: | |
NODE_VERSION: 18 | |
jobs: | |
build: | |
name: Build library | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
cache: "npm" | |
- name: Install π¦ | |
run: npm ci | |
- name: Build π§ | |
run: npm run build | |
docs: | |
name: Build docs | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
cache: "npm" | |
- name: Install π¦ | |
run: npm ci | |
- 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 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
cache: "npm" | |
- name: Install π¦ | |
run: npm ci | |
- name: CSpell βοΈ | |
run: npm run cspell | |
eslint: | |
name: ESLint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
cache: "npm" | |
- name: Install π¦ | |
run: npm ci | |
- name: ESLint β¨ | |
run: npm run lint:es | |
stylelint: | |
name: Stylelint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
cache: "npm" | |
- name: Install π¦ | |
run: npm ci | |
- name: Stylelint β¨ | |
run: npm run lint:style | |
prettier: | |
name: Prettier | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
cache: "npm" | |
- name: Install π¦ | |
run: npm ci | |
- name: Prettier β¨ | |
run: npm run lint:prettier | |
test: | |
name: Test | Node ${{ matrix.node }} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
node: [14, 16, 18, 20] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: "npm" | |
- name: Update npm | |
if: ${{ matrix.node == 14 }} | |
run: npm i -g npm@7 | |
- name: Install π¦ | |
run: npm ci | |
- name: Test π§ͺ | |
run: npm run coverage | |
- name: Codecov β | |
uses: codecov/codecov-action@v3 | |
if: ${{ matrix.node == env.NODE_VERSION }} | |
with: | |
directory: coverage |