Skip to content

Commit de47182

Browse files
committed
store workflow in .github
1 parent 0ec595b commit de47182

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

apps/site/scripts/find-inactive-collaborators/__tests__/index.test.mjs renamed to .github/scripts/__tests__/find-inactive-collaborators.test.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
createOrUpdateInactiveCollaboratorsIssue,
1010
findInactiveCollaboratorsIssue,
1111
formatIssueBody,
12-
} from '../index.mjs';
12+
} from '../find-inactive-collaborators.mjs';
1313

1414
// Test constants
1515
const MOCK_DATE = new Date('2025-05-23T14:33:31Z');
@@ -158,7 +158,7 @@ describe('Inactive Collaborators Tests', () => {
158158
'repo-without-issue'
159159
);
160160

161-
assert.equal(existingIssue?.number, 42);
161+
assert.equal(existingIssue.number, 42);
162162
assert.equal(nonExistingIssue, null);
163163

164164
// Test updating existing issues
File renamed without changes.

.github/workflows/find-inactive-collaborators.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ jobs:
3030
with:
3131
github-token: ${{ secrets.READ_ONLY_PUBLIC_REPO_TOKEN }}
3232
script: |
33-
const { reportInactiveCollaborators } = await import("${{github.workspace}}/apps/site/scripts/find-inactive-collaborators/index.mjs");
33+
const { reportInactiveCollaborators } = await import("${{github.workspace}}/.github/scripts/find-inactive-collaborators.mjs");
3434
3535
await reportInactiveCollaborators(core, github);

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
"start": "turbo run start",
2828
"storybook": "turbo run storybook",
2929
"storybook:build": "turbo run storybook:build",
30-
"test": "turbo test:unit",
30+
"test:actions": "node --test \".github/**/*.test.mjs\"",
31+
"test": "turbo test:unit && pnpm test:actions",
3132
"test:ci": "cross-env NODE_OPTIONS=\"--test-reporter=lcov --test-reporter-destination=lcov.info --test-reporter=junit --test-reporter-destination=junit.xml --test-reporter=@reporters/github --test-reporter-destination=stdout\" turbo test:unit",
3233
"cloudflare:preview": "turbo run cloudflare:preview",
3334
"cloudflare:deploy": "turbo run cloudflare:deploy"

0 commit comments

Comments
 (0)