Skip to content

Commit

Permalink
adds actions files for ui
Browse files Browse the repository at this point in the history
  • Loading branch information
Amogh-Bharadwaj committed Sep 14, 2023
1 parent f1ee5c8 commit 8ccfcfb
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ui-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build & Test UI

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build-test:
name: Build & Test
runs-on: ubuntu-latest

steps:
- name: checkout
uses: actions/checkout@v3

- name: Install Node.js dependencies
working-directory: ui
run: yarn install --frozen-lockfile

- name: Build
working-directory: ui
run: yarn build
33 changes: 33 additions & 0 deletions .github/workflows/ui-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Lint UI

on:
push:
branches:
- main
pull_request:
branches:
- main

permissions:
checks: write
contents: write

jobs:
run-linters:
name: Run linters
runs-on: ubuntu-latest

steps:
- name: checkout
uses: actions/checkout@v3

- name: Install Node.js dependencies
working-directory: ui
run: yarn install --frozen-lockfile

- name: lint
working-directory: ui
uses: wearerequired/lint-action@v2
with:
eslint: true
prettier: true

0 comments on commit 8ccfcfb

Please sign in to comment.