From be8a76b696d7fe7102b4615aa761467f6c203cae Mon Sep 17 00:00:00 2001 From: BH Date: Fri, 30 Jan 2026 10:36:18 -0100 Subject: [PATCH 1/8] ci: add github action to run in the project format:write --- .github/workflows/dev-branch.yml | 21 +++++++++++++++++++++ .gitignore | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/dev-branch.yml diff --git a/.github/workflows/dev-branch.yml b/.github/workflows/dev-branch.yml new file mode 100644 index 0000000..8a1c5d3 --- /dev/null +++ b/.github/workflows/dev-branch.yml @@ -0,0 +1,21 @@ +on: + pull_request: + branches: + - dev + +jobs: + server-format-check: + runs-on: + group: ubuntu-runners + defaults: + run: + working-directory: server + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 22 + cache: "npm" + cache-dependency-path: server/package-lock.json + - run: npm install + - run: npm run format:write \ No newline at end of file diff --git a/.gitignore b/.gitignore index 821c19d..a46ae92 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -.github \ No newline at end of file +# .github \ No newline at end of file From 9da687a807b5c1ed7ebf64ddaac66714a4d52c55 Mon Sep 17 00:00:00 2001 From: BH Date: Fri, 30 Jan 2026 10:38:36 -0100 Subject: [PATCH 2/8] ci: change the group to ubuntu-latest --- .github/workflows/dev-branch.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dev-branch.yml b/.github/workflows/dev-branch.yml index 8a1c5d3..af4f51f 100644 --- a/.github/workflows/dev-branch.yml +++ b/.github/workflows/dev-branch.yml @@ -6,7 +6,7 @@ on: jobs: server-format-check: runs-on: - group: ubuntu-runners + group: ubuntu-latest defaults: run: working-directory: server From c934f103cff23efead9b7ce0eb54702d4dd57e6a Mon Sep 17 00:00:00 2001 From: BH Date: Fri, 30 Jan 2026 10:40:23 -0100 Subject: [PATCH 3/8] ci: remove group --- .github/workflows/dev-branch.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/dev-branch.yml b/.github/workflows/dev-branch.yml index af4f51f..f6982ca 100644 --- a/.github/workflows/dev-branch.yml +++ b/.github/workflows/dev-branch.yml @@ -5,8 +5,7 @@ on: jobs: server-format-check: - runs-on: - group: ubuntu-latest + runs-on: ubuntu-latest defaults: run: working-directory: server From 0e6958d302d9eac50ff9b6a19708bf01f42cc859 Mon Sep 17 00:00:00 2001 From: BH Date: Fri, 30 Jan 2026 10:45:22 -0100 Subject: [PATCH 4/8] ci: update the version for the checkout and setup-node --- .github/workflows/dev-branch.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dev-branch.yml b/.github/workflows/dev-branch.yml index f6982ca..42dd24f 100644 --- a/.github/workflows/dev-branch.yml +++ b/.github/workflows/dev-branch.yml @@ -10,10 +10,10 @@ jobs: run: working-directory: server steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: - node-version: 22 + node-version: 24 cache: "npm" cache-dependency-path: server/package-lock.json - run: npm install From 41cc2839efb5fd386b9f37520191ba84b9e7bf76 Mon Sep 17 00:00:00 2001 From: BH Date: Fri, 30 Jan 2026 10:57:00 -0100 Subject: [PATCH 5/8] ci: change cache-dependency-path --- .github/workflows/dev-branch.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dev-branch.yml b/.github/workflows/dev-branch.yml index 42dd24f..114eb84 100644 --- a/.github/workflows/dev-branch.yml +++ b/.github/workflows/dev-branch.yml @@ -15,6 +15,6 @@ jobs: with: node-version: 24 cache: "npm" - cache-dependency-path: server/package-lock.json + cache-dependency-path: package-lock.json - run: npm install - run: npm run format:write \ No newline at end of file From b7b8f83d9a38674406b417c61dd6ec1810d7866d Mon Sep 17 00:00:00 2001 From: BH Date: Fri, 30 Jan 2026 10:59:40 -0100 Subject: [PATCH 6/8] ci: remove the quote from npm --- .github/workflows/dev-branch.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dev-branch.yml b/.github/workflows/dev-branch.yml index 114eb84..19e6887 100644 --- a/.github/workflows/dev-branch.yml +++ b/.github/workflows/dev-branch.yml @@ -14,7 +14,7 @@ jobs: - uses: actions/setup-node@v6 with: node-version: 24 - cache: "npm" - cache-dependency-path: package-lock.json + cache: npm + cache-dependency-path: server/package-lock.json - run: npm install - run: npm run format:write \ No newline at end of file From eed05a8a1a0ccee89e6b6b807b4801ef6ad1434a Mon Sep 17 00:00:00 2001 From: BH Date: Fri, 30 Jan 2026 11:00:17 -0100 Subject: [PATCH 7/8] ci: remove the quote from the npm --- .github/workflows/dev-branch.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dev-branch.yml b/.github/workflows/dev-branch.yml index 19e6887..f4a535c 100644 --- a/.github/workflows/dev-branch.yml +++ b/.github/workflows/dev-branch.yml @@ -5,7 +5,7 @@ on: jobs: server-format-check: - runs-on: ubuntu-latest + runs-on: ubuntu-latest defaults: run: working-directory: server @@ -17,4 +17,4 @@ jobs: cache: npm cache-dependency-path: server/package-lock.json - run: npm install - - run: npm run format:write \ No newline at end of file + - run: npm run format:write From 61f78773898d111f0321b6237c17cc3f9cb950f2 Mon Sep 17 00:00:00 2001 From: BH Date: Fri, 30 Jan 2026 11:09:05 -0100 Subject: [PATCH 8/8] ci: add paths in the server --- .github/workflows/dev-branch.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dev-branch.yml b/.github/workflows/dev-branch.yml index f4a535c..4373b9f 100644 --- a/.github/workflows/dev-branch.yml +++ b/.github/workflows/dev-branch.yml @@ -2,6 +2,8 @@ on: pull_request: branches: - dev + paths: + - "server/**" jobs: server-format-check: @@ -14,7 +16,7 @@ jobs: - uses: actions/setup-node@v6 with: node-version: 24 - cache: npm + cache: 'npm' cache-dependency-path: server/package-lock.json - run: npm install - run: npm run format:write