diff --git a/.gitea/workflows/code-format.yaml b/.gitea/workflows/code-format.yaml new file mode 100644 index 0000000..433d807 --- /dev/null +++ b/.gitea/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/.gitea/workflows/run-tests.yaml b/.gitea/workflows/run-tests.yaml index 8ca08d2..9942de7 100644 --- a/.gitea/workflows/run-tests.yaml +++ b/.gitea/workflows/run-tests.yaml @@ -3,18 +3,21 @@ on: push: jobs: - test-project: + 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