aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/ci.yml
diff options
context:
space:
mode:
authorMarcos Magueta <maguetamarcos@gmail.com>2025-11-22 00:30:03 -0300
committerGitHub <noreply@github.com>2025-11-22 00:30:03 -0300
commita56ea3089524b440b12b660d36c07f46b4fd9eb3 (patch)
treea2989021cd758b3a30e707e06f11e4bbf1c5fc6b /.github/workflows/ci.yml
parent5978c9bfb1eff01f33b4dcc8b02ceb93526eef4a (diff)
downloadSakura-a56ea3089524b440b12b660d36c07f46b4fd9eb3.tar.gz
Sakura-a56ea3089524b440b12b660d36c07f46b4fd9eb3.zip
Retract tuple, relation and clear relation (truncate) (#9)
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r--.github/workflows/ci.yml43
1 files changed, 43 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..b2ec401
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,43 @@
+name: CI
+
+on:
+ pull_request:
+
+jobs:
+ test:
+ name: Test on OTP ${{matrix.otp}} / rebar3 ${{matrix.rebar3}}
+ runs-on: ubuntu-latest
+
+ strategy:
+ matrix:
+ otp: ['26', '27']
+ rebar3: ['3.23']
+
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v4
+
+ - name: Setup Erlang/OTP
+ uses: erlef/setup-beam@v1
+ with:
+ otp-version: ${{matrix.otp}}
+ rebar3-version: ${{matrix.rebar3}}
+
+ - name: Restore dependencies cache
+ uses: actions/cache@v4
+ with:
+ path: |
+ _build
+ rebar.lock
+ key: ${{ runner.os }}-rebar3-${{ hashFiles('rebar.config') }}
+ restore-keys: |
+ ${{ runner.os }}-rebar3-
+
+ - name: Compile
+ run: rebar3 compile
+
+ - name: Run tests
+ run: rebar3 eunit
+
+ - name: Run dialyzer
+ run: rebar3 dialyzer