feat: add useClipboard hook (#91) #189
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: | |
branches: [main] | |
jobs: | |
build: | |
name: build | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout branch | |
uses: actions/checkout@v3 | |
- name: Install | |
uses: ./.github/actions/install | |
- name: Run build | |
run: pnpm build | |
tests: | |
name: Tests | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout branch | |
uses: actions/checkout@v3 | |
- name: Install | |
uses: ./.github/actions/install | |
- name: Run tests | |
run: pnpm test:coverage | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
linter: | |
name: Linter | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout branch | |
uses: actions/checkout@v3 | |
- name: Install | |
uses: ./.github/actions/install | |
- name: Run ESLint | |
run: pnpm lint | |
format: | |
name: Format | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout branch | |
uses: actions/checkout@v3 | |
- name: Install | |
uses: ./.github/actions/install | |
- name: Run Prettier | |
run: pnpm format:check |