Skip to content

Commit

Permalink
fix: corrected names and with
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaKGoldberg committed Aug 10, 2024
1 parent 2410b07 commit ed461fe
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- run: pnpm build
- run: pnpm lint
lint_knip:
name: Lint_knip
name: Lint Knip
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { formatWorkflowYaml } from "./formatWorkflowYaml.js";

export type MultiWorkflowJobStep = { run: string } | { uses: string };
export type MultiWorkflowJobStep =
| { run: string }
| { uses: string; with?: Record<string, string> };

export interface MultiWorkflowJobOptions {
name: string;
Expand Down Expand Up @@ -29,7 +31,6 @@ export function createMultiWorkflowFile({
{ uses: "./.github/actions/prepare" },
...job.steps,
],
with: job.with,
},
]),
),
Expand Down
6 changes: 3 additions & 3 deletions src/steps/writing/creation/dotGitHub/createWorkflows.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ describe("createWorkflows", () => {
- uses: ./.github/actions/prepare
- run: pnpm lint:packages
lint_spelling:
name: Lint spelling
name: Lint Spelling
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -126,8 +126,8 @@ describe("createWorkflows", () => {
- uses: ./.github/actions/prepare
- run: pnpm run test --coverage
- uses: codecov/codecov-action@v3
with:
flags: unit
with:
flags: unit
type_check:
name: Type Check
runs-on: ubuntu-latest
Expand Down
12 changes: 7 additions & 5 deletions src/steps/writing/creation/dotGitHub/createWorkflows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export function createWorkflows(options: Options) {
? []
: [
{
name: "Lint spelling",
name: "Lint Spelling",
steps: [{ run: "pnpm lint:spelling" }],
},
]),
Expand All @@ -88,11 +88,13 @@ export function createWorkflows(options: Options) {
name: "Test",
steps: [
{ run: "pnpm run test --coverage" },
{ uses: "codecov/codecov-action@v3" },
{
uses: "codecov/codecov-action@v3",
with: {
flags: "unit",
},
},
],
with: {
flags: "unit",
},
},
]),
],
Expand Down

0 comments on commit ed461fe

Please sign in to comment.