Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CI Pipeline

on:
pull_request:
branches: [main, development]
branches: [main, development, dev]

jobs:
build:
Expand All @@ -20,15 +20,18 @@ jobs:
with:
name: git-diff
path: diff.txt
- uses: actions/setup-node@v2

- name: Setup Node.js
uses: actions/setup-node@v4 # Use v4 for latest features. Can also specify version this way
with:
node-version: "21"
node-version: "20" # Use a more recent LTS version
cache: 'npm' # Enable caching for npm dependencies
cache-dependency-path: 'src/package-lock.json' # Where package-lock.json is
- name: ci for api
working-directory: ./src
run: |
npm i
npm i typescript
npm ci # Use npm ci for faster and cleaner installs based on package-lock.json
npm run compile
npm run format
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading
Loading