Skip to content

Commit

Permalink
feat: SNEGDEV-10 сделал сборку и запуск тестов в github action'ах
Browse files Browse the repository at this point in the history
  • Loading branch information
lionskape committed Oct 8, 2023
1 parent fc58d71 commit a4c82ba
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 9 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20
10 changes: 5 additions & 5 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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:*",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@
"prettier": "3.0.3",
"turbo": "1.10.15"
},
"repository": "https://github.com/sneg240/frontend",
"packageManager": "[email protected]"
}
5 changes: 1 addition & 4 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"pipeline": {
"build": {
"dependsOn": ["^build"],
"outputs": [".next/**", "!.next/cache/**"]
"outputs": [".next/**", "!.next/cache/**", "storybook-static/**"]
},
"check": {
"dependsOn": ["lint", "typecheck"]
Expand All @@ -14,9 +14,6 @@
"dev": {
"cache": false,
"persistent": true
},
"crawl": {
"cache": false
}
}
}

0 comments on commit a4c82ba

Please sign in to comment.