Skip to content

Commit a495167

Browse files
committed
fix tests
1 parent c70cd27 commit a495167

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v2
17+
- uses: actions/setup-node@v2
18+
with:
19+
node-version: '16'
1720
- name: Install depedencies
1821
run: |
1922
sudo apt update -y
@@ -38,6 +41,9 @@ jobs:
3841
runs-on: windows-latest
3942
steps: # TODO: install missing dependencies and run all tests on windows
4043
- uses: actions/checkout@v2
44+
- uses: actions/setup-node@v2
45+
with:
46+
node-version: '16'
4147
- uses: actions/setup-dotnet@v1
4248
with:
4349
dotnet-version: "5.0.x"
@@ -52,6 +58,9 @@ jobs:
5258
runs-on: macos-latest
5359
steps: # TODO: install missing dependencies and run all tests on macos
5460
- uses: actions/checkout@v2
61+
- uses: actions/setup-node@v2
62+
with:
63+
node-version: '16'
5564
- uses: actions/setup-dotnet@v1
5665
with:
5766
dotnet-version: "5.0.x"

.github/workflows/upload-binaries.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ jobs:
1616
target: [i686-unknown-linux-gnu, x86_64-unknown-linux-gnu]
1717
steps:
1818
- uses: actions/checkout@v2
19+
- uses: actions/setup-node@v2
20+
with:
21+
node-version: '16'
1922
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
2023
with:
2124
project_id: ${{ secrets.GCP_PROJECT_ID }}
@@ -41,6 +44,9 @@ jobs:
4144
target: [i686-pc-windows-msvc, x86_64-pc-windows-msvc]
4245
steps:
4346
- uses: actions/checkout@v2
47+
- uses: actions/setup-node@v2
48+
with:
49+
node-version: '16'
4450
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
4551
with:
4652
project_id: ${{ secrets.GCP_PROJECT_ID }}
@@ -62,6 +68,9 @@ jobs:
6268
runs-on: macos-latest
6369
steps:
6470
- uses: actions/checkout@v2
71+
- uses: actions/setup-node@v2
72+
with:
73+
node-version: '16'
6574
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
6675
with:
6776
project_id: ${{ secrets.GCP_PROJECT_ID }}
@@ -82,6 +91,9 @@ jobs:
8291
target: [aarch64-unknown-linux-gnu, armv7-unknown-linux-gnueabihf]
8392
steps:
8493
- uses: actions/checkout@v2
94+
- uses: actions/setup-node@v2
95+
with:
96+
node-version: '16'
8597
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
8698
with:
8799
project_id: ${{ secrets.GCP_PROJECT_ID }}

bindings/tmc-langs-node/jest/tmc.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ async function writeFiles(
5353
) {
5454
for await (const [relative, contents] of files) {
5555
const p = [root, relative].join("/");
56-
const dir = [p, "../"].join("/");
57-
await fs.promises.mkdir(dir, { recursive: true });
56+
await fs.promises.mkdir(p, { recursive: true });
57+
await fs.promises.rmdir(p);
5858
if (contents == undefined) {
5959
await fs.promises.writeFile(p, "");
6060
} else {

0 commit comments

Comments
 (0)