Skip to content

Commit

Permalink
♻️ Create Github Action
Browse files Browse the repository at this point in the history
  • Loading branch information
jdevera committed Jul 15, 2024
1 parent 7c46cdb commit e8ee5fb
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build and Test

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
TERM: linux

jobs:
linux-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Checks
run: make check
- name: Run tests (as root)
run: |
sudo make test
- name: Compile to a file
run: make build
- name: Run checks on the single file
run: make distcheck
2 changes: 1 addition & 1 deletion test/_build.bats
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ setup_file() {
PROJECT_ROOT="$( cd "$( dirname "$BATS_TEST_FILENAME" )/.." >/dev/null 2>&1 && pwd )"
export JDVLIB_COMPILED_PATH=$BATS_FILE_TMPDIR/jdvlib.sh
pushd "$PROJECT_ROOT" > /dev/null || return 1
"$PROJECT_ROOT/compile.sh" lib "${JDVLIB_COMPILED_PATH}"
./compile.sh lib "${JDVLIB_COMPILED_PATH}"
popd > /dev/null || return 1
}

Expand Down

0 comments on commit e8ee5fb

Please sign in to comment.