This repository has been archived by the owner on Oct 18, 2024. It is now read-only.
feat: video component #79
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: Run Checks | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
jobs: | |
test-unit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: '16.x' | |
- name: Install dependencies | |
run: yarn install | |
- name: Create a .version.js file | |
run: | | |
touch .version.js && echo "echo \"export const version = 'test'\" > .version.js" | bash - | |
- name: Run tests | |
run: yarn test:unit:ci --coverage | |
- name: Code Coverage Report | |
uses: romeovs/[email protected] | |
with: | |
title: Code Coverage Report - ${{ github.event.pull_request.head.ref }} | |
github-token: ${{ secrets.TOKEN_GITHUB }} | |
lcov-file: ./coverage/lcov.info | |
delete-old-comments: true | |
test-web-components: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: '16.x' | |
- name: Install dependencies | |
run: yarn install | |
- name: Create a .version.js file | |
run: | | |
touch .version.js && echo "echo \"export const version = 'test'\" > .version.js" | bash - | |
- name: Run tests | |
run: yarn test:unit:web-components | |
build: | |
runs-on: ubuntu-latest | |
needs: [test-unit, test-web-components] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: '16.x' | |
- name: Install dependencies | |
run: yarn install | |
- name: Create a .version.js file | |
run: | | |
touch .version.js && echo "echo \"export const version = 'test'\" > .version.js" | bash - | |
- name: Build | |
run: yarn build |