mirror of
https://github.com/checktheroads/hyperglass
synced 2024-05-11 05:55:08 +00:00
36 lines
838 B
YAML
36 lines
838 B
YAML
name: Frontend Testing
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
frontend:
|
|
name: Frontend Tests
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
node-version: [14.x]
|
|
os: [ubuntu-20.04]
|
|
runs-on: ${{ matrix.os }}
|
|
env:
|
|
working-directory: ./hyperglass/ui
|
|
steps:
|
|
- name: Git Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install Node
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
- name: Install Dependencies
|
|
working-directory: ${{ env.working-directory }}
|
|
run: yarn install
|
|
|
|
- name: TypeScript
|
|
run: ./.tests/pre-commit-frontend.sh --typescript
|
|
|
|
- name: ESLint
|
|
run: ./.tests/pre-commit-frontend.sh --eslint
|
|
|
|
- name: Prettier
|
|
run: ./.tests/pre-commit-frontend.sh --prettier
|