chore: add license header #83
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
# Copyright (c) 2023 Anass Bouassaba. | |
# | |
# This software is licensed under the MIT License. | |
# You can find a copy of the license in the LICENSE file | |
# included in the root of this repository or at | |
# https://opensource.org/licenses/MIT. | |
name: Lint and Build | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- '**' | |
- '!README.md' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Set Up Bun | |
uses: oven-sh/setup-bun@v2 | |
with: | |
bun-version: latest | |
- name: Install Packages | |
run: bun i | |
- name: Build | |
run: bun run build | |
permissions: | |
contents: read | |
pull-requests: read | |
checks: write | |
build-storybook: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Set Up Bun | |
uses: oven-sh/setup-bun@v2 | |
with: | |
bun-version: latest | |
- name: Install Packages | |
run: bun i | |
- name: Build | |
run: bun run build | |
- name: Build Storybook | |
run: bun run build-storybook | |
permissions: | |
contents: read | |
pull-requests: read | |
checks: write | |
lint: | |
runs-on: ubuntu-latest | |
needs: | |
- build | |
- build-storybook | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Set Up Bun | |
uses: oven-sh/setup-bun@v2 | |
with: | |
bun-version: latest | |
- name: Install packages | |
run: bun i | |
- name: Build | |
run: bun run build | |
- name: Run TypeScript Compiler | |
run: bun run tsc | |
- name: Run ESLint | |
run: bun run lint | |
permissions: | |
contents: read | |
pull-requests: read | |
checks: write |