Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Lab

Lab #67

Workflow file for this run

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