From c09445f0431e9621dd6d9e6ef45ef468f5a9315f Mon Sep 17 00:00:00 2001 From: ALBERICLOOS Date: Sat, 2 Mar 2024 11:44:02 +0100 Subject: [PATCH 1/7] toevoegen github actions --- .github/workflows/frontend.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/frontend.yml diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml new file mode 100644 index 00000000..3a110f75 --- /dev/null +++ b/.github/workflows/frontend.yml @@ -0,0 +1,17 @@ +name: Frontend +on: [push] +jobs: + lint: + runs-on: self-hosted + steps: + - uses: actions/checkout@v4 + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: '20' + - name: Install dependencies + run: npm install --prefix frontend + - name: Lint code + run: npx eslint frontend + - name: Run TypeScript checks + run: npx tsc --noEmit frontend \ No newline at end of file From 987b9e89f39ddb23704498f7ff725a309cbfb6d2 Mon Sep 17 00:00:00 2001 From: ALBERICLOOS Date: Sat, 2 Mar 2024 11:53:42 +0100 Subject: [PATCH 2/7] aanpassen naar node@v4 --- .github/workflows/frontend.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index 3a110f75..e3be1f73 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -6,7 +6,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Set up Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: '20' - name: Install dependencies From 847086004f3650cb5ff858b2606cecccb14ef393 Mon Sep 17 00:00:00 2001 From: ALBERICLOOS Date: Sat, 2 Mar 2024 11:59:24 +0100 Subject: [PATCH 3/7] aanpassen dependencies --- .github/workflows/frontend.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index e3be1f73..714ecf22 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -10,7 +10,9 @@ jobs: with: node-version: '20' - name: Install dependencies - run: npm install --prefix frontend + run: | + npm install --prefix frontend + npm install typescript --prefix frontend - name: Lint code run: npx eslint frontend - name: Run TypeScript checks From de6ffbaf3fbc5d0e101d51207844515f092c1eba Mon Sep 17 00:00:00 2001 From: ALBERICLOOS Date: Sat, 2 Mar 2024 12:04:10 +0100 Subject: [PATCH 4/7] aanpassen github actions --- .github/workflows/frontend.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index 714ecf22..8fba2966 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -10,10 +10,8 @@ jobs: with: node-version: '20' - name: Install dependencies - run: | - npm install --prefix frontend - npm install typescript --prefix frontend + run: npm install --prefix frontend - name: Lint code - run: npx eslint frontend + run: cd frontend && npx eslint frontend - name: Run TypeScript checks - run: npx tsc --noEmit frontend \ No newline at end of file + run: cd frontend && npx tsc --noEmit \ No newline at end of file From a0a67b06e0846da43d3fc77bc44273751a56661b Mon Sep 17 00:00:00 2001 From: ALBERICLOOS Date: Sat, 2 Mar 2024 12:06:40 +0100 Subject: [PATCH 5/7] github actions --- .github/workflows/frontend.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index 8fba2966..3af0696f 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -12,6 +12,6 @@ jobs: - name: Install dependencies run: npm install --prefix frontend - name: Lint code - run: cd frontend && npx eslint frontend + run: cd frontend && npx eslint - name: Run TypeScript checks run: cd frontend && npx tsc --noEmit \ No newline at end of file From e282f1609e3015ff2d292794bc83ca7e9f4b1dd7 Mon Sep 17 00:00:00 2001 From: ALBERICLOOS Date: Sat, 2 Mar 2024 12:07:12 +0100 Subject: [PATCH 6/7] github actions --- .github/workflows/frontend.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index 3af0696f..20eec7ef 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -10,7 +10,7 @@ jobs: with: node-version: '20' - name: Install dependencies - run: npm install --prefix frontend + run: cd frontend && npm install - name: Lint code run: cd frontend && npx eslint - name: Run TypeScript checks From e40092cca20cf0de3c1cc00663403b1571f6226c Mon Sep 17 00:00:00 2001 From: ALBERICLOOS Date: Sat, 2 Mar 2024 12:10:21 +0100 Subject: [PATCH 7/7] github actions smoll brain bright --- .github/workflows/frontend.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index 20eec7ef..bb6ac559 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -12,6 +12,6 @@ jobs: - name: Install dependencies run: cd frontend && npm install - name: Lint code - run: cd frontend && npx eslint + run: cd frontend && npx eslint . - name: Run TypeScript checks run: cd frontend && npx tsc --noEmit \ No newline at end of file