-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a6476fd
commit 8f2e9a7
Showing
6 changed files
with
79 additions
and
7 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Build & Test UI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build-test: | ||
name: Build & Test UI | ||
strategy: | ||
matrix: | ||
runner: [ubuntu-latest, ubicloud] | ||
runs-on: ${{ matrix.runner }} | ||
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 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Lint UI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
checks: write | ||
contents: write | ||
|
||
jobs: | ||
run-linters: | ||
name: Run UI linters | ||
strategy: | ||
matrix: | ||
runner: [ubuntu-latest, ubicloud] | ||
runs-on: ${{ matrix.runner }} | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Node.js dependencies | ||
working-directory: ui | ||
run: yarn install --frozen-lockfile | ||
|
||
- name: lint | ||
uses: wearerequired/lint-action@v2 | ||
with: | ||
eslint: true | ||
prettier: true | ||
eslint_dir: ui | ||
prettier_dir: ui |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
set -xeuo pipefail | ||
|
||
# check if buf is installed | ||
if ! command -v buf &> /dev/null | ||
then | ||
echo "buf could not be found" | ||
echo "Please install buf: https://buf.build/docs/installation" | ||
exit | ||
fi | ||
|
||
buf generate protos |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
{ | ||
"extends": [ | ||
"next", | ||
"plugin:storybook/recommended", | ||
"prettier" | ||
] | ||
"extends": ["next", "plugin:storybook/recommended", "prettier"] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
node_modules | ||
.next | ||
.next | ||
**/grpc_generated |
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