Skip to content

Commit 1102864

Browse files
jferrisjwilger
andauthored
Extract reusable integration test cases to module (jwilger#32)
In order to reuse the same test logic for different event backends, we want to extract the generic test logic to a module that can be reused. --------- Signed-off-by: John Wilger <john@johnwilger.com> Co-authored-by: John Wilger <john@johnwilger.com>
1 parent bb53ba7 commit 1102864

File tree

8 files changed

+377
-334
lines changed

8 files changed

+377
-334
lines changed

.devcontainer/Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
FROM xtruder/nix-devcontainer:v1

.devcontainer/devcontainer.json

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
// For format details, see https://aka.ms/vscode-remote/devcontainer.json or the definition README at
2+
// https://github.com/microsoft/vscode-dev-containers/tree/master/containers/docker-existing-dockerfile
3+
{
4+
"name": "mneme",
5+
"dockerFile": "Dockerfile",
6+
"context": "${localWorkspaceFolder}",
7+
"build": {
8+
"args": {
9+
"USER_UID": "${localEnv:USER_UID}",
10+
"USER_GID": "${localEnv:USER_GID}"
11+
}
12+
},
13+
14+
// run arguments passed to docker
15+
"runArgs": ["--security-opt", "label=disable"],
16+
17+
"containerEnv": {
18+
// extensions to preload before other extensions
19+
"PRELOAD_EXTENSIONS": "Rubymaniac.vscode-direnv"
20+
},
21+
22+
// disable command overriding and updating remote user ID
23+
"overrideCommand": false,
24+
"userEnvProbe": "loginShell",
25+
"updateRemoteUserUID": false,
26+
27+
// build development environment on creation, make sure you already have shell.nix
28+
"onCreateCommand": "nix develop --install",
29+
30+
// Add the IDs of extensions you want installed when the container is created.
31+
"extensions": ["Rubymaniac.vscode-direnv"],
32+
33+
"features": {
34+
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
35+
},
36+
37+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
38+
"forwardPorts": [2113, 5432]
39+
}

.envrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
use flake

.github/workflows/publish-crate.yml

-17
This file was deleted.

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,5 @@ Cargo.lock
2222
.cargo
2323
.bacon-locations
2424
.pg_data
25+
26+
.direnv

flake.nix

-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
rust-analyzer
4040
rustToolchain
4141
just
42-
goose-cli
4342
];
4443

4544
env = {

0 commit comments

Comments
 (0)