chore: update workflows
This commit is contained in:
20
.gitea/workflows/code-format.yaml
Normal file
20
.gitea/workflows/code-format.yaml
Normal file
@@ -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
|
||||||
|
|
@@ -3,18 +3,21 @@ on:
|
|||||||
push:
|
push:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test-project:
|
test:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install elixir
|
- name: Install elixir
|
||||||
uses: erlef/setup-beam@v1
|
uses: erlef/setup-beam@v1
|
||||||
with:
|
with:
|
||||||
otp-version: '28'
|
otp-version: '28'
|
||||||
elixir-version: '1.18'
|
elixir-version: '1.18'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: mix deps.get
|
run: mix deps.get
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: mix test
|
run: mix test
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user