Skip to content

Commit

Permalink
add github action (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrik-bakke authored Oct 4, 2023
1 parent 69abeeb commit 7e9ca66
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/qc.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion skript/tester.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7e9ca66

Please sign in to comment.