Skip to content

Commit a10362c

Browse files
feat: unified CI jobs into one ci.yml (#1608)
## PR Checklist - [x] Addresses an existing open issue: fixes #1099 - [x] That issue was marked as [`status: accepting prs`](https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22) - [x] Steps in [CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/create-typescript-app/blob/main/.github/CONTRIBUTING.md) were taken ## Overview Comes with a nice overall reduction in line count too, despite the addition of `createMultiWorkflowFile.ts`. 💖
1 parent 9683e6e commit a10362c

24 files changed

+451
-507
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
jobs:
2+
build:
3+
name: Build
4+
runs-on: ubuntu-latest
5+
steps:
6+
- uses: actions/checkout@v4
7+
- uses: ./.github/actions/prepare
8+
- run: pnpm build
9+
- run: node ./lib/index.js
10+
lint:
11+
name: Lint
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: ./.github/actions/prepare
16+
- run: pnpm build
17+
- run: pnpm lint
18+
lint_knip:
19+
name: Lint Knip
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v4
23+
- uses: ./.github/actions/prepare
24+
- run: pnpm lint:knip
25+
lint_markdown:
26+
name: Lint Markdown
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v4
30+
- uses: ./.github/actions/prepare
31+
- run: pnpm lint:md
32+
lint_packages:
33+
name: Lint Packages
34+
runs-on: ubuntu-latest
35+
steps:
36+
- uses: actions/checkout@v4
37+
- uses: ./.github/actions/prepare
38+
- run: pnpm lint:packages
39+
lint_spelling:
40+
name: Lint Spelling
41+
runs-on: ubuntu-latest
42+
steps:
43+
- uses: actions/checkout@v4
44+
- uses: ./.github/actions/prepare
45+
- run: pnpm lint:spelling
46+
prettier:
47+
name: Prettier
48+
runs-on: ubuntu-latest
49+
steps:
50+
- uses: actions/checkout@v4
51+
- uses: ./.github/actions/prepare
52+
- run: pnpm format --list-different
53+
test:
54+
name: Test
55+
runs-on: ubuntu-latest
56+
steps:
57+
- uses: actions/checkout@v4
58+
- uses: ./.github/actions/prepare
59+
- run: pnpm run test --coverage
60+
- uses: codecov/codecov-action@v3
61+
with:
62+
flags: unit
63+
type_check:
64+
name: Type Check
65+
runs-on: ubuntu-latest
66+
steps:
67+
- uses: actions/checkout@v4
68+
- uses: ./.github/actions/prepare
69+
- run: pnpm tsc
70+
71+
name: CI
72+
73+
on:
74+
pull_request: ~
75+
push:
76+
branches:
77+
- main

.github/workflows/lint-knip.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

.github/workflows/lint-markdown.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

.github/workflows/lint-packages.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

.github/workflows/lint-spelling.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

.github/workflows/lint.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

.github/workflows/prettier.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.github/workflows/tsc.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)