Skip to content

Commit

Permalink
feat(ui): add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dshemin committed Oct 19, 2023
1 parent 9805bf1 commit 8623827
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches: [ "master" ]
paths-ignore:
- ".github/workflows/ui.yml"
- "development"
- "migrations"
- "ui/**"
Expand All @@ -12,6 +13,14 @@ on:
- "README.md"
pull_request:
branches: [ "master" ]
paths-ignore:
- ".github/workflows/ui.yml"
- "development"
- "migrations"
- "ui/**"
- ".gitignore"
- "docker-compose.yml"
- "README.md"

env:
CARGO_TERM_COLOR: always
Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/ui.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: UI

on:
push:
branches: [ "master" ]
paths:
- ".github/workflows/ui.yml"
- "ui/**"
pull_request:
branches: [ "master" ]
paths:
- ".github/workflows/ui.yml"
- "ui/**"

env:
WORKFLOW_NODE_VERSION: v16.x

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ env.WORKFLOW_NODE_VERSION }}
uses: actions/setup-node@v1
with:
node-version: ${{ env.WORKFLOW_NODE_VERSION }}
- name: Cache dependencies
uses: actions/cache@v2
with:
path: |
**/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/yarn-lock.json') }}
- name: Install
run: yarn Install
- name: Lint
run: yarn lint

0 comments on commit 8623827

Please sign in to comment.