Skip to content

Commit 3a048fc

Browse files
committed
Add vscode for debug and imporoved ci.
1 parent 8c4810e commit 3a048fc

File tree

3 files changed

+34
-4
lines changed

3 files changed

+34
-4
lines changed

.github/workflows/test.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Test
1+
name: Tests
22

33
on:
44
push:
@@ -15,8 +15,8 @@ env:
1515
DOCKER_BUILDKIT: 1
1616

1717
jobs:
18-
test:
19-
name: Test
18+
unit-test:
19+
name: Unit Test
2020
runs-on: ubuntu-latest
2121

2222
strategy:
@@ -31,6 +31,19 @@ jobs:
3131
- name: Run Unit Tests
3232
run: docker build --target unit_test_${{ matrix.build-type }} -f Dockerfile.dev -t metacall/metassr:unit .
3333

34+
integration-test:
35+
name: Integration Test
36+
runs-on: ubuntu-latest
37+
38+
strategy:
39+
fail-fast: false
40+
matrix:
41+
build-type: [debug, release]
42+
43+
steps:
44+
- name: Checkout repository
45+
uses: actions/checkout@v4
46+
3447
- name: Bundler Integration Tests
3548
run: docker build --target integration_test_${{ matrix.build-type }} -f Dockerfile.dev -t metacall/metassr:integration .
3649

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
target
22
node_modules
33
dist
4-
.vscode

.vscode/launch.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "Debug MetaSSR [Build]",
9+
"type": "lldb",
10+
"request": "launch",
11+
"program": "${workspaceFolder}/target/debug/metassr",
12+
"args": ["--debug-mode=metacall", "build"],
13+
"cwd": "${workspaceFolder}",
14+
"env": {},
15+
"sourceLanguages": ["rust"]
16+
}
17+
]
18+
}

0 commit comments

Comments
 (0)