Skip to content

Commit 928ead9

Browse files
gcf-owl-bot[bot]ddelgrosso1
authored andcommitted
chore: do not run windows tests in the test-script environment
Source-Link: googleapis/synthtool@490078a Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest@sha256:7c7ecb30ffac77ebdacd15f4b1c6c888f01c212832b9efd73fbf4bfc1284b7d4
1 parent e0ac235 commit 928ead9

File tree

3 files changed

+38
-1
lines changed

3 files changed

+38
-1
lines changed

.github/scripts/package.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "tests",
3+
"private": true,
4+
"description": "tests for script",
5+
"scripts": {
6+
"test": "mocha tests/close-invalid-link.test.cjs && mocha tests/close-or-remove-response-label.test.cjs"
7+
},
8+
"author": "Google Inc.",
9+
"license": "Apache-2.0",
10+
"engines": {
11+
"node": ">=18"
12+
},
13+
"dependencies": {
14+
"js-yaml": "^4.1.0"
15+
},
16+
"devDependencies": {
17+
"@octokit/rest": "^19.0.0",
18+
"mocha": "^10.0.0",
19+
"sinon": "^18.0.0"
20+
}
21+
}

.github/workflows/ci.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,20 @@ jobs:
2626
- run: npm test
2727
env:
2828
MOCHA_THROW_DEPRECATION: false
29+
test-script:
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v4
33+
- uses: actions/setup-node@v4
34+
with:
35+
node-version: 18
36+
- run: node --version
37+
- run: npm install --engine-strict
38+
working-directory: .github/scripts
39+
- run: npm test
40+
working-directory: .github/scripts
41+
env:
42+
MOCHA_THROW_DEPRECATION: false
2943
windows:
3044
runs-on: windows-latest
3145
steps:

.kokoro/samples-test.sh

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)