From 3f57c4340a0eb2592a7b65739a31b8d251536246 Mon Sep 17 00:00:00 2001 From: Frej Drejhammar Date: Fri, 24 Mar 2023 18:19:30 +0100 Subject: [PATCH] Change CI to run tests using test runner --- .github/workflows/main.yml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 169a97b..dd1b98c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,12 +1,21 @@ on: push: + branches: [master] + pull_request: + # The branches below must be a subset of the branches above + branches: [master] jobs: test: + name: Run test suite runs-on: ubuntu-latest + steps: - - uses: actions/checkout@v3 - - name: Install sharness - run: - git clone --depth 1 https://github.com/felipec/sharness.git t/sharness - - run: SHARNESS_TEST_SRCDIR=t/sharness t/main.t + - name: Checkout repository + uses: actions/checkout@v2 + with: + fetch-depth: 1 + submodules: 'recursive' + + - name: Run tests + run: ./run-tests