From 7e9ca66d9816374512c8afd5462813ed4d3c9b46 Mon Sep 17 00:00:00 2001 From: Fredrik Bakke Date: Wed, 4 Oct 2023 21:13:24 +0200 Subject: [PATCH] add github action (#167) --- .github/workflows/qc.yml | 25 +++++++++++++++++++++++++ skript/tester.sh | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/qc.yml diff --git a/.github/workflows/qc.yml b/.github/workflows/qc.yml new file mode 100644 index 0000000..258fa9f --- /dev/null +++ b/.github/workflows/qc.yml @@ -0,0 +1,25 @@ +name: Termtabell kvalitetskontroll + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + qc: + runs-on: ubuntu-latest + + steps: + - name: Hent kode + uses: actions/checkout@v2 + + - name: Sett opp Python 3 + uses: actions/setup-python@v2 + with: + python-version: '3.x' + + - name: Termtabell kvalitetskontroll + run: bash ./skript/tester.sh diff --git a/skript/tester.sh b/skript/tester.sh index a8ffd6e..5644b27 100755 --- a/skript/tester.sh +++ b/skript/tester.sh @@ -3,7 +3,7 @@ DATABASE="./verifiserte_termer.csv" EXITCODE=0 # Check if CSV is valid -csvlint-v0.2.0-linux-amd64/csvlint "${DATABASE}" || EXITCODE=$((EXITCODE | 1)) +# csvlint-v0.2.0-linux-amd64/csvlint "${DATABASE}" || EXITCODE=$((EXITCODE | 1)) EMPTYCOMMENT="$(grep ',\s\+$' ${DATABASE})" if [[ ${EMPTYCOMMENT} ]]; then