From 4ab31fa1c18b9b62ff34cfd2ae5ff4554fce56dd Mon Sep 17 00:00:00 2001 From: Ivanruii Date: Mon, 29 Jul 2024 17:13:59 -0400 Subject: [PATCH 1/4] Added setup for ci --- .github/workflows/ci.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..489a7815 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,25 @@ +name: CI Workflow + +on: pull_request + +jobs: + ci: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Use Node.js 18.13.0 + uses: actions/setup-node@v2 + with: + node-version: '18.13.0' + cache: 'npm' + + - name: Install front + run: npm ci + + - name: Build + run: npm run build + + - name: Run tests + run: npm test From 744b08c4d155bb5fc7b19eb242322700573459cc Mon Sep 17 00:00:00 2001 From: Ivanruii Date: Mon, 29 Jul 2024 17:15:10 -0400 Subject: [PATCH 2/4] Changed install step name --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 489a7815..88c4808d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ jobs: node-version: '18.13.0' cache: 'npm' - - name: Install front + - name: Install dependencies run: npm ci - name: Build From 074bd3cf99fb379e8be8690bd053defbf4e02a3e Mon Sep 17 00:00:00 2001 From: Ivanruii Date: Mon, 29 Jul 2024 19:01:22 -0400 Subject: [PATCH 3/4] Changed build step CI workflow --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 88c4808d..b0702194 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: run: npm ci - name: Build - run: npm run build + run: npm run tsc-check - name: Run tests run: npm test From 0398c4c59f4f0c69ad6fe80d3a4e1b729ac30158 Mon Sep 17 00:00:00 2001 From: Ivanruii Date: Mon, 29 Jul 2024 19:04:41 -0400 Subject: [PATCH 4/4] Added tsc-check to package.json scripts --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index a8a2c284..6929ad6c 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,8 @@ "test": "vitest", "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", "preview": "vite preview", - "prepare": "husky install" + "prepare": "husky install", + "tsc-check": "tsc --noEmit" }, "dependencies": { "@atlaskit/pragmatic-drag-and-drop": "^1.2.1",