Skip to content

Commit 2486cef

Browse files
committed
Combine build tasks
1 parent 0662d54 commit 2486cef

3 files changed

Lines changed: 17 additions & 14 deletions

File tree

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
name: End-to-end Tests
1+
name: Lint, Build and Test
22
on:
33
push:
44
branches: [main, develop]
55
pull_request:
66
branches: [main, develop]
77
jobs:
8-
test:
8+
compile:
99
timeout-minutes: 60
1010
runs-on: ubuntu-latest
1111
steps:
@@ -15,6 +15,8 @@ jobs:
1515
node-version: '14.x'
1616
- name: Install dependencies
1717
run: npm ci
18+
- name: Run compile (includes linting, prettier and building)
19+
run: npm run compile
1820
- name: Install Playwright Browsers
1921
run: npx playwright install --with-deps
2022
- name: Run Playwright tests

package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"lint": "next lint --report-unused-disable-directives error",
1010
"test": "playwright test",
1111
"prettier": "prettier --write --ignore-path .gitignore .",
12-
"typecheck": "tsc --build"
12+
"typecheck": "tsc --build",
13+
"compile": "npm run prettier && npm run lint && npm run typecheck && npm run build"
1314
},
1415
"dependencies": {
1516
"next": "12.3.1",
@@ -18,16 +19,16 @@
1819
},
1920
"devDependencies": {
2021
"@playwright/test": "1.22.2",
21-
"@tailwindcss/aspect-ratio": "^0.4.0",
22+
"@tailwindcss/aspect-ratio": "0.4.0",
2223
"@types/react": "18.0.21",
23-
"@typescript-eslint/eslint-plugin": "^5.38.1",
24+
"@typescript-eslint/eslint-plugin": "5.38.1",
2425
"autoprefixer": "10.4.7",
2526
"eslint": "8.17.0",
2627
"eslint-config-next": "12.1.6",
27-
"eslint-config-prettier": "^8.5.0",
28+
"eslint-config-prettier": "8.5.0",
2829
"postcss": "8.4.14",
29-
"prettier": "^2.7.1",
30+
"prettier": "2.7.1",
3031
"tailwindcss": "3.1.2",
31-
"typescript": "^4.8.4"
32+
"typescript": "4.8.4"
3233
}
33-
}
34+
}

0 commit comments

Comments
 (0)