Skip to content

Commit

Permalink
Merge pull request #1 from redwirelabs/add-ci
Browse files Browse the repository at this point in the history
Add github ci workflow
  • Loading branch information
abelino authored Aug 28, 2024
2 parents e3f6f4b + 3665090 commit 4825bef
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 1 deletion.
47 changes: 47 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ include(${CPM_PATH})
# dependencies
CPMFindPackage(
NAME bacnet
GIT_REPOSITORY [email protected]:bacnet-stack/bacnet-stack.git
GITHUB_REPOSITORY bacnet-stack/bacnet-stack
GIT_TAG bacnet-stack-1.3.8)

# setup erlang
Expand Down
1 change: 1 addition & 0 deletions dialyzer.ignore.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]

0 comments on commit 4825bef

Please sign in to comment.