From 228fbd334e6527ef01881b9f70e13b02fa662362 Mon Sep 17 00:00:00 2001 From: Sascha Schneider Date: Mon, 8 Jul 2024 18:06:35 +0200 Subject: [PATCH] Add test github action --- .github/workflows/test.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..d5b30f6 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,24 @@ +name: test + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: build + run: | + cd .. + mkdir temp + cd temp + sudo sh ${{ github.workspace }}/compile.sh ${{ github.workspace }} + + - name: tests + run: | + export PATH=$PATH:${{ github.workspace }}/../temp/AgDev_build/bin + sh ${{ github.workspace }}/run_tests.sh