diff --git a/.github/workflows/code_checks.yml b/.github/workflows/code_checks.yml index a259db1..278a3ef 100644 --- a/.github/workflows/code_checks.yml +++ b/.github/workflows/code_checks.yml @@ -28,6 +28,17 @@ jobs: with: command: gitui --version + - name: Checkout code + uses: actions/checkout@v4 + + - name: Install Tools with asdf + uses: asdf-vm/actions/install@v3 + + - name: Test plugin with bats + run: | + asdf plugin-add gitui "${GITHUB_WORKSPACE}" + bats --filter-tags type:features test + lint_and_tests: runs-on: ubuntu-latest steps: @@ -47,7 +58,6 @@ jobs: run: | pre-commit run --all-files - - name: Test plugin with bats + - name: Test code with bats run: | - asdf plugin-add gitui "${GITHUB_WORKSPACE}" - bats test + bats --filter-tags type:code test diff --git a/.vscode/settings.json b/.vscode/settings.json index 2650102..7b99416 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,4 +1,27 @@ { "cloudcode.yaml.format.singleQuote": true, - "yaml.format.singleQuote": true + "yaml.format.singleQuote": true, + "workbench.colorCustomizations": { + "activityBar.activeBackground": "#91f339", + "activityBar.background": "#91f339", + "activityBar.foreground": "#15202b", + "activityBar.inactiveForeground": "#15202b99", + "activityBarBadge.background": "#4b9bf4", + "activityBarBadge.foreground": "#15202b", + "commandCenter.border": "#15202b99", + "sash.hoverBorder": "#91f339", + "statusBar.background": "#76eb0e", + "statusBar.foreground": "#15202b", + "statusBarItem.hoverBackground": "#5ebb0b", + "statusBarItem.remoteBackground": "#76eb0e", + "statusBarItem.remoteForeground": "#15202b", + "titleBar.activeBackground": "#76eb0e", + "titleBar.activeForeground": "#15202b", + "titleBar.inactiveBackground": "#76eb0e99", + "titleBar.inactiveForeground": "#15202b99" + }, + "peacock.color": "#76eb0e", + "cSpell.words": [ + "POSIX" + ] } diff --git a/README.md b/README.md index 4b65695..c91ad24 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,6 @@ ## Dependencies - `bash`, `curl`, and [POSIX utilities](https://pubs.opengroup.org/onlinepubs/9699919799/idx/utilities.html). -- a python 3 runtime (provided through [asdf-python](https://github.com/asdf-community/asdf-python) or not) ## Install diff --git a/test/default.bats b/test/default.bats index 1801073..a9b6c26 100644 --- a/test/default.bats +++ b/test/default.bats @@ -1,19 +1,22 @@ #!/usr/bin/env bats +# shellcheck disable=SC2034 +BATS_TEST_FILENAME_BASENAME=$(basename "${BATS_TEST_FILENAME}") +# bats file_tags=type:features @test "can list all" { asdf list all gitui } -@test "can install latest" { +@test "can install latest [${BATS_TEST_FILENAME_BASENAME}]" { asdf install gitui latest } -@test "can install 0.25.2" { +@test "can install 0.25.2 [${BATS_TEST_FILENAME_BASENAME}]" { asdf install gitui 0.25.2 asdf list gitui } -@test "can install 0.26.2" { +@test "can install 0.26.2 [${BATS_TEST_FILENAME_BASENAME}]" { asdf install gitui 0.26.2 asdf list gitui }