feat(component): add Video player component #677
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
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: Lint and self test | |
on: | |
pull_request: | |
branches: [ master ] | |
jobs: | |
lint-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel Workflow Action | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Read .nvmrc | |
run: echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_ENV | |
id: nvm | |
- name: Use Node.js ${{ env.NVMRC }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ env.NVMRC }} | |
- name: Install pnpm | |
uses: pnpm/action-setup@v3 | |
with: | |
version: 9 | |
run_install: false | |
- name: Get pnpm store directory | |
shell: bash | |
run: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | |
- name: Setup pnpm cache | |
uses: actions/cache@v4 | |
with: | |
path: ${{ env.STORE_PATH }} | |
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm-store- | |
- name: Install dependencies | |
run: pnpm install | |
- name: Run test tasks | |
run: | | |
pnpm run lint:commits --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose | |
pnpm run lint:code --quiet | |
pnpm run lint:style --quiet | |
pnpm run build | |
pnpm run generate:component Foo --dry-run | |
pnpm run generate:input Foo --dry-run | |
pnpm run generate:global Foo --dry-run | |
pnpm run generate:icon Foo --dry-run | |
pnpm run semantic-release --dry-run | |
pnpm run convert:theme |