diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..7a3b233 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,47 @@ +on: push + +jobs: + unit_tests: + name: Unit Tests + runs-on: ubuntu-24.04 + env: + MIX_ENV: test + steps: + - name: Set up Elixir + uses: erlef/setup-beam@v1 + with: + otp-version: "27.0" + elixir-version: "1.17.2" + - name: Checkout repository + uses: actions/checkout@v4 + - name: Get dependencies + run: mix deps.get --only test + - name: Run unit tests + run: mix test + + type_check: + name: Type Check + runs-on: ubuntu-24.04 + steps: + - name: Set up Elixir + uses: erlef/setup-beam@v1 + with: + otp-version: "27.0" + elixir-version: "1.17.2" + - name: Checkout repository + uses: actions/checkout@v4 + - name: Get dependencies + run: mix deps.get --only dev + - name: Restore PLTs + uses: actions/cache@v4 + with: + path: _build/dev/plt + key: plt-${{ github.ref }}-${{ github.sha }} + restore-keys: | + plt-${{ github.ref }}-${{ github.sha }} + plt-${{ github.ref }}- + plt-refs/heads/master- + - name: Compile + run: mix compile + - name: Run dialyzer + run: mix dialyzer diff --git a/CMakeLists.txt b/CMakeLists.txt index f515053..bc6df24 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,7 +15,7 @@ include(${CPM_PATH}) # dependencies CPMFindPackage( NAME bacnet - GIT_REPOSITORY git@github.com:bacnet-stack/bacnet-stack.git + GITHUB_REPOSITORY bacnet-stack/bacnet-stack GIT_TAG bacnet-stack-1.3.8) # setup erlang diff --git a/dialyzer.ignore.exs b/dialyzer.ignore.exs new file mode 100644 index 0000000..fe51488 --- /dev/null +++ b/dialyzer.ignore.exs @@ -0,0 +1 @@ +[]