From a8a15f823c66774c8c25bee4a9c90a654776eafa Mon Sep 17 00:00:00 2001 From: Ben Peachey Date: Sun, 28 Jan 2024 14:10:15 +0100 Subject: [PATCH] Add GitHub action for running TAP tests. --- .github/workflows/run-tap-tests.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/run-tap-tests.yml diff --git a/.github/workflows/run-tap-tests.yml b/.github/workflows/run-tap-tests.yml new file mode 100644 index 0000000..cbc9e45 --- /dev/null +++ b/.github/workflows/run-tap-tests.yml @@ -0,0 +1,22 @@ +--- +name: Run tap tests + +on: + - push + - pull_request + # Allow manually triggering the workflow. + - workflow_dispatch + +# Cancels all previous workflow runs for the same branch that have not yet completed. +concurrency: + # The concurrency group contains the workflow name and the branch name. + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: npm install + - run: ./node_modules/.bin/tap --color --reporter=base test/*.mjs