From a4c82ba9266d8fc93dcdcb4131a8b28848c5a450 Mon Sep 17 00:00:00 2001 From: Vladimir Ulyanov Date: Sun, 8 Oct 2023 20:33:26 +0300 Subject: [PATCH] =?UTF-8?q?feat:=20SNEGDEV-10=20=D1=81=D0=B4=D0=B5=D0=BB?= =?UTF-8?q?=D0=B0=D0=BB=20=D1=81=D0=B1=D0=BE=D1=80=D0=BA=D1=83=20=D0=B8=20?= =?UTF-8?q?=D0=B7=D0=B0=D0=BF=D1=83=D1=81=D0=BA=20=D1=82=D0=B5=D1=81=D1=82?= =?UTF-8?q?=D0=BE=D0=B2=20=D0=B2=20github=20action'=D0=B0=D1=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 39 +++++++++++++++++++++++++++++++++++++++ .node-version | 1 + apps/web/package.json | 10 +++++----- package.json | 1 + turbo.json | 5 +---- 5 files changed, 47 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/ci.yml create mode 100644 .node-version diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..dc04dac --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,39 @@ +name: CI + +on: + push: + branches: ["main"] + pull_request: + types: [opened, synchronize] + +jobs: + build: + name: Build and Test + timeout-minutes: 15 + runs-on: ubuntu-latest + env: + TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} + TURBO_TEAM: ${{ vars.TURBO_TEAM }} + + steps: + - name: Check out code + uses: actions/checkout@v4 + with: + fetch-depth: 2 + + - uses: pnpm/action-setup@v2 + + - name: Setup Node.js environment + uses: actions/setup-node@v3 + with: + node-version: 18 + cache: 'pnpm' + + - name: Install dependencies + run: pnpm install + + - name: Build + run: pnpm run build + + - name: Lint & Test + run: pnpm run check diff --git a/.node-version b/.node-version new file mode 100644 index 0000000..209e3ef --- /dev/null +++ b/.node-version @@ -0,0 +1 @@ +20 diff --git a/apps/web/package.json b/apps/web/package.json index d86f266..27bccb9 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -5,11 +5,11 @@ "type": "module", "sideEffect": false, "scripts": { - "dev": "next dev --turbo", - "build": "next build", - "start": "next start", - "lint": "next lint", - "typecheck": "tsc" + "disabled:dev": "next dev --turbo", + "disabled:build": "next build", + "disabled:start": "next start", + "disabled:lint": "next lint", + "disabled:typecheck": "tsc" }, "dependencies": { "@sneg240/tailwind": "workspace:*", diff --git a/package.json b/package.json index ca76e66..e5e7386 100644 --- a/package.json +++ b/package.json @@ -23,5 +23,6 @@ "prettier": "3.0.3", "turbo": "1.10.15" }, + "repository": "https://github.com/sneg240/frontend", "packageManager": "pnpm@8.6.10" } diff --git a/turbo.json b/turbo.json index fc1b686..b2255a6 100644 --- a/turbo.json +++ b/turbo.json @@ -4,7 +4,7 @@ "pipeline": { "build": { "dependsOn": ["^build"], - "outputs": [".next/**", "!.next/cache/**"] + "outputs": [".next/**", "!.next/cache/**", "storybook-static/**"] }, "check": { "dependsOn": ["lint", "typecheck"] @@ -14,9 +14,6 @@ "dev": { "cache": false, "persistent": true - }, - "crawl": { - "cache": false } } }