From e4ff82909c2f3bcc69d48084425d1e64464bb8f7 Mon Sep 17 00:00:00 2001 From: Andrea Date: Tue, 9 Sep 2025 13:31:55 +0200 Subject: [PATCH] chore: add github actions --- .github/workflows/code-format.yaml | 20 ++++++++++++++++++++ .github/workflows/run-tests.yaml | 23 +++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 .github/workflows/code-format.yaml create mode 100644 .github/workflows/run-tests.yaml diff --git a/.github/workflows/code-format.yaml b/.github/workflows/code-format.yaml new file mode 100644 index 0000000..433d807 --- /dev/null +++ b/.github/workflows/code-format.yaml @@ -0,0 +1,20 @@ +name: Code Format +on: + push: + +jobs: + format: + runs-on: ubuntu-22.04 + steps: + - name: Check out repository code + uses: actions/checkout@v4 + + - name: Install elixir + uses: erlef/setup-beam@v1 + with: + otp-version: '28' + elixir-version: '1.18' + + - name: Check format + run: mix format --check-formatted + diff --git a/.github/workflows/run-tests.yaml b/.github/workflows/run-tests.yaml new file mode 100644 index 0000000..9942de7 --- /dev/null +++ b/.github/workflows/run-tests.yaml @@ -0,0 +1,23 @@ +name: Run tests +on: + push: + +jobs: + test: + runs-on: ubuntu-22.04 + steps: + - name: Check out repository code + uses: actions/checkout@v4 + + - name: Install elixir + uses: erlef/setup-beam@v1 + with: + otp-version: '28' + elixir-version: '1.18' + + - name: Install dependencies + run: mix deps.get + + - name: Run tests + run: mix test +