Skip to content

Commit

Permalink
Use tasks for tests :)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbode committed Dec 24, 2024
1 parent a956d20 commit feed16a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,18 @@ jobs:
- name: Mise
uses: jdx/mise-action@v2

- run: mise plugins link --force "${PWD}"
- run: mise --verbose x poetry@latest -- poetry --version
- name: Link the plugin
run: mise plugins link --force "${PWD}"
- name: Smoke test
run: mise --verbose x poetry@latest -- poetry --version
- run: cat poetry-installer-error-*.log && exit 1
if: failure()

- name: Run tests
run: |-
mise config set settings.trusted_config_paths "${PWD}/tests"
mise -C "${PWD}/tests" install
make test
mise run test
lint:
runs-on: ubuntu-latest
Expand Down
5 changes: 5 additions & 0 deletions .mise.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
[tools]
python = { version = "3.12" }
shellcheck = "latest"
shfmt = "latest"
"aqua:bats-core/bats-core" = "latest"

[tasks]
test = { quiet = true, run = "tests/run_tests.sh" }
4 changes: 0 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,3 @@ format-check:
lint:
shellcheck $(SH_SRCFILES)
.PHONY: lint

test:
tests/run_tests.sh
.PHONY: test
4 changes: 0 additions & 4 deletions tests/.mise.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
#:schema https://raw.githubusercontent.com/jdx/mise/main/schema/mise.json

[tools]
python = { version = "3.12" }
"aqua:bats-core/bats-core" = "latest"

[env]
XDG_DATA_HOME = "{{ env.HOME }}/.local/share"

0 comments on commit feed16a

Please sign in to comment.