From 03002b2af82ba708cfca073656afecf7bc78e430 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gaute=20Fl=C3=A6gstad?= Date: Wed, 8 Oct 2025 10:49:57 +0200 Subject: [PATCH 1/5] fix(#24): :bug: THe pipeline syntax was for gitlab, not github --- .github/workflows/main.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 524f281..df96e09 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,9 +1,14 @@ -stages: - - lint +name: Prettier -prettier: - stage: lint - image: node:20 - script: - - npm ci - - npx prettier --check . +on: [push, pull_request] + +jobs: + prettier: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + - run: npm ci + - run: npx prettier --check . \ No newline at end of file From 579090c227b6fce90c5c51898308b022f154666c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gaute=20Greiff=20Fl=C3=A6gstad?= Date: Wed, 8 Oct 2025 11:16:20 +0200 Subject: [PATCH 2/5] Update main.yml --- .github/workflows/main.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index df96e09..fc23e87 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,14 +1,13 @@ name: Prettier on: [push, pull_request] - jobs: prettier: - runs-on: ubuntu-latest + runs-on: self-hosted steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: 20 - run: npm ci - - run: npx prettier --check . \ No newline at end of file + - run: npx prettier --check . From d5e32b11b75fcbd46d0538144228a3fb6d402b41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gaute=20Fl=C3=A6gstad?= Date: Wed, 8 Oct 2025 11:55:16 +0200 Subject: [PATCH 3/5] fix(#24): :bug: Pipeline only needs to run on pull requests --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fc23e87..9c87ff5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,6 +1,6 @@ name: Prettier -on: [push, pull_request] +on: [pull_request] jobs: prettier: runs-on: self-hosted From 3511dc135ddd2af299037e77e22d5cba1cabb266 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gaute=20Fl=C3=A6gstad?= Date: Wed, 8 Oct 2025 12:00:12 +0200 Subject: [PATCH 4/5] ran prettier --- .github/pull_request_template.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 03accaf..e44bbf8 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -3,9 +3,11 @@ Closes # ### Description + ### Testing steps + -### Screenshots (optional) \ No newline at end of file +### Screenshots (optional) From 82b2ac76c4828b80ea94de1494372eb126c0b446 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gaute=20Fl=C3=A6gstad?= Date: Wed, 8 Oct 2025 12:14:50 +0200 Subject: [PATCH 5/5] fix(#24): :bug: CHange node version to 22 --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9c87ff5..f15f50d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,6 +8,6 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 - run: npm ci - run: npx prettier --check .