From 570077d808716c6f3a3f132aac7872a68bbb2383 Mon Sep 17 00:00:00 2001 From: Josh Bax Date: Wed, 11 Dec 2024 16:12:24 -0800 Subject: [PATCH] Add an extra workflow for exit-status tests --- .github/workflows/test_exit-status.yml | 54 ++++++++++++++++++++++++++ Makefile | 23 ++++++++++- 2 files changed, 76 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/test_exit-status.yml diff --git a/.github/workflows/test_exit-status.yml b/.github/workflows/test_exit-status.yml new file mode 100644 index 00000000..f5f5370d --- /dev/null +++ b/.github/workflows/test_exit-status.yml @@ -0,0 +1,54 @@ +name: Test Exit Status of Commands + +on: + push: + branches: + - master + paths: + - 'eask' + - '**.yml' + - lisp/** + - cmds/** + - src/** + - test/** + pull_request: + branches: + - master + paths-ignore: + - '**.md' + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + test: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + emacs-version: + - 29.4 + + steps: + - uses: jcs090218/setup-emacs@master + with: + version: ${{ matrix.emacs-version }} + + - uses: actions/checkout@v4 + + - name: Prepare Eask (Unix) + if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest' + run: | + chmod -R 777 ./ + .github/scripts/setup-eask + + - name: Prepare Eask (Windows) + if: matrix.os == 'windows-latest' + run: .github/scripts/setup-eask.ps1 + + - name: Testing... + run: | + make test-exit-status diff --git a/Makefile b/Makefile index d5fa01b9..fbc86126 100644 --- a/Makefile +++ b/Makefile @@ -34,7 +34,7 @@ command-local: command-analyze: ./test/commands/analyze/dsl/run.sh - ./test/commands/analyze/metadata/run.sh + ./test/commands/analyze/metadata/run.sh; command-docker: ./test/commands/docker/run.sh @@ -68,3 +68,24 @@ test-buttercup: test-ecukes: ./test/commands/test/ecukes/run.sh + +test-exit-status: + ./test/exit-status/analyze/run.sh + ./test/exit-status/clean/run.sh + ./test/exit-status/compile/run.sh + ./test/exit-status/create/run.sh + ./test/exit-status/eval/run.sh + ./test/exit-status/fixtures/run.sh + ./test/exit-status/format/run.sh + ./test/exit-status/generate/run.sh + ./test/exit-status/install/run.sh + ./test/exit-status/install-deps/run.sh + ./test/exit-status/link/run.sh + ./test/exit-status/lint/run.sh + ./test/exit-status/load/run.sh + ./test/exit-status/package/run.sh + ./test/exit-status/refresh/run.sh + ./test/exit-status/reinstall/run.sh + ./test/exit-status/run/run.sh + ./test/exit-status/test/run.sh + ./test/exit-status/uninstall/run.sh