Skip to content

Commit

Permalink
fix(github): update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
mykaua committed May 13, 2024
1 parent 8f0cc46 commit 01b4187
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 55 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-expolrer-db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
- 'postgres-Dockerfile'
- '!**.md'
- '.github/workflows/build-explorer-db.yml'
- 'app/persistence/fabric/postgreSQL/db/**'

jobs:
build:
Expand Down
47 changes: 18 additions & 29 deletions .github/workflows/build-expolrer.yaml
Original file line number Diff line number Diff line change
@@ -1,35 +1,24 @@
name: build
name: Build hlf-explorer

on:
on:
workflow_dispatch:
push:
tags:
- hlf-explorer*
branches:
- main
pull_request:
branches:
- main
- dev
# paths:
# - 'Dockerfile'
# - '!**.md'
# - '.github/workflows/build-explorer.yml'
# - 'app/persistence/fabric/postgreSQL/db/**'

jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: install server dependencies
run: npm install

- name: build server
run: npm run build

- name: install client dependencies
run: npm install --prefix client


- name: build client
run: CI=false npm run build --prefix client #warnning are considered as failed build, skipping warnings

uses: bcvouch/gha-workflows/.github/workflows/build-mono.yaml@main
secrets: inherit
with:
image_name: bcvouch/hlf-explorer
app_name: hlf-explorer
dockerfile: Dockerfile
41 changes: 15 additions & 26 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,29 +1,18 @@
name: test
name: Unit Tests

on:
push:
branches:
- main
on:
workflow_dispatch:
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: install dependencies
run: npm install

- name: run test
run: npm test

paths-ignore:
- '**.md'
- '.vscode/**'
- 'devspace.yaml'
- '.release-please-manifest.json'
- 'release-please-config.json'

jobs:
test-npm-unit:
uses: bcvouch/gha-workflows/.github/workflows/test-npm-unit.yaml@main
secrets: inherit
with:
node_version: 20.9.0

0 comments on commit 01b4187

Please sign in to comment.