Skip to content

Commit

Permalink
fix: invert test.yml excludes logic (#910)
Browse files Browse the repository at this point in the history
## PR Checklist

- [x] Addresses an existing open issue: fixes #909
- [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

馃う .
  • Loading branch information
JoshuaKGoldberg committed Oct 1, 2023
1 parent e78ab6b commit bbb6760
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
40 changes: 20 additions & 20 deletions src/steps/writing/creation/dotGitHub/createWorkflows.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,26 @@ describe("createWorkflows", () => {
permissions:
contents: write
id-token: write
",
"test.yml": "jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/prepare
- run: pnpm run test --coverage
- name: Codecov
uses: codecov/codecov-action@v3
with:
github-token: \${{ secrets.GITHUB_TOKEN }}
name: Test
on:
pull_request: ~
push:
branches:
- main
",
"tsc.yml": "jobs:
type_check:
Expand Down Expand Up @@ -446,26 +466,6 @@ describe("createWorkflows", () => {
name: Prettier
on:
pull_request: ~
push:
branches:
- main
",
"test.yml": "jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/prepare
- run: pnpm run test --coverage
- name: Codecov
uses: codecov/codecov-action@v3
with:
github-token: \${{ secrets.GITHUB_TOKEN }}
name: Test
on:
pull_request: ~
push:
Expand Down
2 changes: 1 addition & 1 deletion src/steps/writing/creation/dotGitHub/createWorkflows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ export function createWorkflows(options: Options) {
],
}),
}),
...(options.excludeTests && {
...(!options.excludeTests && {
"test.yml": createWorkflowFile({
name: "Test",
steps: [
Expand Down

0 comments on commit bbb6760

Please sign in to comment.