Skip to content

Commit

Permalink
Add GitHub workflow for the @narval/transaction-request-intent
Browse files Browse the repository at this point in the history
Prevent workflows to run on changes in any other workflow configuration.
  • Loading branch information
wcalderipe committed Jan 12, 2024
1 parent 2505fe1 commit f4165dc
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/authz_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
paths:
- apps/authz/**
- .github/workflows/**
- .github/workflows/authz_ci.yml
- Makefile
- jest.config.ts
- jest.preset.js
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/orchestration_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
paths:
- apps/orchestration/**
- .github/workflows/**
- .github/workflows/orchestration_ci.yml
- Makefile
- jest.config.ts
- jest.preset.js
Expand Down
44 changes: 44 additions & 0 deletions .github/workflows/transaction_request_intent_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Transaction Request Intent CI

on:
push:
paths:
- packages/transaction-request-intent/**
- .github/workflows/transaction_request_intent_ci.yml
- Makefile
- jest.config.ts
- jest.preset.js
- .eslintrc.json
- .prettierrc
- package.json
- package-lock.json

jobs:
build-and-test:
name: Build and test

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@master

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: '20.4.0'

- name: Install dependencies
run: |
make install/ci
- name: Code format
shell: bash
run: |
make format/check
make lint/check
- name: Test unit
shell: bash
run: |
make transaction-request-intent/test/unit
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
include ./apps/authz/Makefile
include ./apps/orchestration/Makefile
include ./packages/transaction-request-intent/Makefile

# For more terminal color codes, head over to https://opensource.com/article/19/9/linux-terminal-colors
TERM_NO_COLOR := \033[0m
Expand Down
4 changes: 4 additions & 0 deletions packages/transaction-request-intent/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
TRANSACTION_REQUEST_INTENT_PROJECT_NAME := transaction-request-intent

transaction-request-intent/test/unit:
npx nx test:unit ${TRANSACTION_REQUEST_INTENT_PROJECT_NAME}

0 comments on commit f4165dc

Please sign in to comment.