Skip to content

Commit

Permalink
Merge branch 'main' into completion-framework
Browse files Browse the repository at this point in the history
  • Loading branch information
prsabahrami authored Sep 30, 2024
2 parents 879f87c + 89c4910 commit a6983ae
Show file tree
Hide file tree
Showing 54 changed files with 5,270 additions and 2,193 deletions.
6 changes: 6 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"image": "mcr.microsoft.com/devcontainers/universal:2",
"features": {
"ghcr.io/devcontainers/features/rust:1": {}
}
}
23 changes: 23 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: coverage

on: [push]
jobs:
test:
name: coverage
runs-on: ubuntu-latest
container:
image: xd009642/tarpaulin:develop-nightly
options: --security-opt seccomp=unconfined
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Generate code coverage
run: |
cargo +nightly tarpaulin --verbose --all-features --workspace --timeout 120 --out xml
- name: Upload to codecov.io
uses: codecov/codecov-action@v2
with:
token: ${{secrets.CODECOV_TOKEN}}
fail_ci_if_error: true
2 changes: 2 additions & 0 deletions .github/workflows/rust-linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ jobs:
toolchain: stable
profile: minimal
override: true

- uses: Swatinem/rust-cache@v2

- name: Run cargo clippy
run: cargo clippy --all-targets --workspace -- -D warnings
10 changes: 7 additions & 3 deletions .github/workflows/rust-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ on:

jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -25,7 +28,8 @@ jobs:
toolchain: stable
profile: minimal
override: true

- uses: Swatinem/rust-cache@v2

- name: Run tests
# TODO: run on whole workspace with "cargo test --workspace --all-targets"
run: cargo test --manifest-path crates/shell/Cargo.toml --all-targets
run: cargo test --workspace --all-targets
102 changes: 102 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in library 'deno_task_shell'",
"cargo": {
"args": [
"test",
"--no-run",
"--lib",
"--package=deno_task_shell"
],
"filter": {
"name": "deno_task_shell",
"kind": "lib"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in library 'shell'",
"cargo": {
"args": [
"test",
"--no-run",
"--lib",
"--package=shell"
],
"filter": {
"name": "shell",
"kind": "lib"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug executable 'shell'",
"cargo": {
"args": [
"build",
"--bin=shell",
"--package=shell"
],
"filter": {
"name": "shell",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in executable 'shell'",
"cargo": {
"args": [
"test",
"--no-run",
"--bin=shell",
"--package=shell"
],
"filter": {
"name": "shell",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in library 'tests'",
"cargo": {
"args": [
"test",
"--no-run",
"--lib",
"--package=tests"
],
"filter": {
"name": "tests",
"kind": "lib"
}
},
"args": [],
"cwd": "${workspaceFolder}"
}
]
}
Loading

0 comments on commit a6983ae

Please sign in to comment.