diff --git a/.github/workflows/ui-build.yml b/.github/workflows/ui-build.yml new file mode 100644 index 0000000000..681ffe243c --- /dev/null +++ b/.github/workflows/ui-build.yml @@ -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 \ No newline at end of file diff --git a/.github/workflows/ui-lint.yml b/.github/workflows/ui-lint.yml new file mode 100644 index 0000000000..19e2c4c39c --- /dev/null +++ b/.github/workflows/ui-lint.yml @@ -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 \ No newline at end of file