Skip to content

Commit 85e4ab0

Browse files
committed
feat: add .github tests
1 parent 5ae0969 commit 85e4ab0

7 files changed

+17
-4
lines changed

.github/package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"name": "@next-i18n/github-actions",
3+
"version": "1.0.0",
4+
"description": "Node.js scripts for GitHub Actions",
5+
"private": true,
6+
"type": "commonjs",
7+
"scripts": {
8+
"test": "node --test test/*.test.js"
9+
}
10+
}

.github/scripts/check-locale-changes.test.js renamed to .github/test/check-locale-changes.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const {
1313
processAutoTrigger,
1414
isLocaleEnabled,
1515
getLocaleConfig,
16-
} = require('./check-locale-changes.js');
16+
} = require('../scripts/check-locale-changes.js');
1717

1818
// Mock locale config for testing
1919
const mockLocaleConfig = {

.github/scripts/generate-e2e-matrix.test.js renamed to .github/test/generate-e2e-matrix.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
const { test } = require('node:test');
99
const assert = require('node:assert');
10-
const { generateE2EMatrix } = require('./generate-e2e-matrix.js');
10+
const { generateE2EMatrix } = require('../scripts/generate-e2e-matrix.js');
1111

1212
test('generateE2EMatrix should create cross-product of locales and shards', () => {
1313
const localesJson =

.github/scripts/generate-prerelease-matrix.test.js renamed to .github/test/generate-prerelease-matrix.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const {
1111
processPrerelease,
1212
isLocaleEnabled,
1313
getLocaleConfig,
14-
} = require('./generate-prerelease-matrix.js');
14+
} = require('../scripts/generate-prerelease-matrix.js');
1515

1616
// Mock locale config for testing
1717
const mockLocaleConfig = {

.github/scripts/process-file-changes.test.js renamed to .github/test/process-file-changes.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const {
2828
getDeletedFiles,
2929
processRenames,
3030
processDeletions,
31-
} = require('./process-file-changes.js');
31+
} = require('../scripts/process-file-changes.js');
3232

3333
// Mock test directory setup
3434
let testDir;

pnpm-lock.yaml

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

pnpm-workspace.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
packages:
22
- packages/*
33
- apps/*
4+
- .github

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy