Skip to content

Commit 1538576

Browse files
committed
(#547) Get rid of Docker tests
1 parent e0b7ac5 commit 1538576

File tree

12 files changed

+5
-111
lines changed

12 files changed

+5
-111
lines changed

.build/build.sh

Lines changed: 0 additions & 26 deletions
This file was deleted.

.build/run_linux.sh

Lines changed: 0 additions & 16 deletions
This file was deleted.

.build/run_osx.sh

Lines changed: 0 additions & 9 deletions
This file was deleted.

.build/setup_linux.sh

Lines changed: 0 additions & 9 deletions
This file was deleted.

.build/setup_osx.sh

Lines changed: 0 additions & 2 deletions
This file was deleted.

.github/workflows/ci.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ jobs:
2020
uses: actions/setup-node@v3
2121
with:
2222
node-version: 18
23-
- name: Setup Docker
24-
run: |
25-
docker pull s1hofmann/nut-ci:latest
26-
docker run -it -d --name nut-ci --shm-size 8gb --user $(id -u):$(id -g) -v ${PWD}:${PWD}:rw s1hofmann/nut-ci:latest bash
2723
- name: Install
2824
run: npm ci
2925
- name: Compile
@@ -38,8 +34,6 @@ jobs:
3834
NODE_OPTIONS: "--max-old-space-size=8192"
3935
with:
4036
run: npm run coverage -- --coverageDirectory=coverage/unit
41-
- name: Run Docker E2E tests
42-
run: docker exec nut-ci bash -c "bash $PWD/.build/build.sh ${PWD} 14"
4337
- name: Run Electron e2e test subpackage
4438
uses: GabrielBB/xvfb-action@v1
4539
with:

.github/workflows/snapshot_release.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@ jobs:
2424
uses: actions/setup-node@v3
2525
with:
2626
node-version: ${{matrix.node}}
27-
- name: Setup Docker
28-
if: ${{matrix.os == 'ubuntu-latest'}}
29-
run: |
30-
docker pull s1hofmann/nut-ci:latest
31-
docker run -it -d --name nut-ci --shm-size 8gb --user $(id -u):$(id -g) -v ${PWD}:${PWD}:rw s1hofmann/nut-ci:latest bash
3227
- name: Install
3328
run: npm ci
3429
- name: Install @nut-tree/libnut@next
@@ -43,9 +38,6 @@ jobs:
4338
run: |
4439
npx playwright install --with-deps
4540
npm test
46-
- name: Run Docker E2E tests
47-
if: ${{matrix.os == 'ubuntu-latest'}}
48-
run: docker exec nut-ci bash -c "bash $PWD/.build/build.sh ${PWD} 14"
4941
- name: Run Electron e2e test subpackage
5042
uses: GabrielBB/xvfb-action@v1
5143
with:

.github/workflows/tagged_release.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@ jobs:
1818
uses: actions/setup-node@v3
1919
with:
2020
node-version: ${{matrix.node}}
21-
- name: Setup Docker
22-
if: ${{matrix.os == 'ubuntu-latest'}}
23-
run: |
24-
docker pull s1hofmann/nut-ci:latest
25-
docker run -it -d --name nut-ci --shm-size 8gb --user $(id -u):$(id -g) -v ${PWD}:${PWD}:rw s1hofmann/nut-ci:latest bash
2621
- name: Install
2722
run: npm ci
2823
- name: Compile
@@ -35,9 +30,6 @@ jobs:
3530
run: |
3631
npx playwright install --with-deps
3732
npm test
38-
- name: Run Docker E2E tests
39-
if: ${{matrix.os == 'ubuntu-latest'}}
40-
run: docker exec nut-ci bash -c "bash $PWD/.build/build.sh ${PWD} ${{matrix.node}}"
4133
- name: Run Electron e2e test subpackage
4234
uses: GabrielBB/xvfb-action@v1
4335
with:

lib/clipboard.class.e2e.spec.ts

Lines changed: 0 additions & 13 deletions
This file was deleted.

lib/expect/matchers/toBeAt.function.e2e.spec.ts renamed to lib/expect/matchers/toBeAt.function.spec.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,17 @@ import { mouse } from "../../../index";
22
import { Point } from "../../point.class";
33
import { toBeAt } from "./toBeAt.function";
44

5-
jest.mock("jimp", () => {});
6-
75
const targetPoint = new Point(100, 100);
86

97
describe(".toBeAt", () => {
10-
beforeEach(() => {
11-
mouse.setPosition(targetPoint);
12-
});
13-
148
it("should succeed when cursor is at right position.", async () => {
9+
mouse.getPosition = jest.fn(() => Promise.resolve(targetPoint));
1510
const result = await toBeAt(mouse, targetPoint);
1611
expect(result.pass).toBeTruthy();
1712
});
1813

1914
it("should fail when cursor is at wrong position.", async () => {
15+
mouse.getPosition = jest.fn(() => Promise.resolve(targetPoint));
2016
const result = await toBeAt(mouse, new Point(10, 10));
2117
expect(result.pass).toBeFalsy();
2218
});

0 commit comments

Comments
 (0)