feat(components): introduce Banner component #3827
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: Check | |
on: push | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
lint: | |
name: Lint | |
if: ${{ !startsWith(github.ref, 'refs/heads/ci-release-v') }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 100 | |
- name: Setup | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install | |
uses: ./.github/actions/install | |
- name: Lint commits (last 100) | |
run: yarn commitlint --from HEAD~99 --to HEAD -V | |
- name: Lint code | |
run: yarn test:lint | |
type: | |
name: Type | |
if: ${{ !startsWith(github.ref, 'refs/heads/ci-release-v') }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install | |
uses: ./.github/actions/install | |
- name: Type | |
run: yarn test:type | |
test_unit: | |
name: Unit Test | |
if: ${{ !startsWith(github.ref, 'refs/heads/ci-release-v') }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install | |
uses: ./.github/actions/install | |
- name: Test | |
run: yarn test:unit --coverage | |
- name: Upload coverage | |
uses: codecov/codecov-action@v4 | |
with: | |
flags: unit | |
token: ${{ secrets.CODECOV_TOKEN }} |