chore: add github actions
This commit is contained in:
20
.github/workflows/code-format.yaml
vendored
Normal file
20
.github/workflows/code-format.yaml
vendored
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
|
||||
|
23
.github/workflows/run-tests.yaml
vendored
Normal file
23
.github/workflows/run-tests.yaml
vendored
Normal file
@@ -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
|
||||
|
Reference in New Issue
Block a user