Skip to content

Commit 0e045dd

Browse files
committed
ci: add github actions workflow
1 parent 8dfff68 commit 0e045dd

File tree

3 files changed

+69
-0
lines changed

3 files changed

+69
-0
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
### Steps to reproduce
2+
3+
- Configuration Used
4+
- Errors/Incorrect Behaviour Encountered
5+
6+
### Description of issue
7+
8+
- What are the expected results?
9+
- Is the documentation incorrect?

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
### Summary of changes
2+
3+
I'll review the commits, so I mostly want to understand the "why" rather than the "what"
4+
5+
### Checklist
6+
7+
- [ ] New functions have typespecs, changed functions were updated
8+
- [ ] Same for documentation, including moduledocs
9+
- [ ] Tests were added or updated to cover changes
10+
- [ ] Commits were squashed into a single coherent commit
11+
- [ ] Notes added to CHANGELOG file which describe changes at a high-level

.github/workflows/elixir.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: elixir
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-20.04
12+
env:
13+
MIX_ENV: test
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
include:
18+
- pair:
19+
elixir: "1.17"
20+
otp: "27"
21+
lint: lint
22+
steps:
23+
- uses: actions/checkout@v4
24+
25+
- uses: erlef/setup-beam@v1
26+
with:
27+
otp-version: ${{matrix.pair.otp}}
28+
elixir-version: ${{matrix.pair.elixir}}
29+
30+
- uses: actions/cache@v4
31+
with:
32+
path: |
33+
deps
34+
_build
35+
key: ${{ runner.os }}-mix-${{matrix.pair.elixir}}-${{matrix.pair.otp}}-${{ hashFiles('**/mix.lock') }}
36+
restore-keys: |
37+
${{ runner.os }}-mix-${{matrix.pair.elixir}}-${{matrix.pair.otp}}-
38+
39+
- run: mix deps.get --only test
40+
41+
- run: mix format --check-formatted
42+
if: ${{ matrix.lint }}
43+
44+
- run: mix deps.get && mix deps.unlock --check-unused
45+
if: ${{ matrix.lint }}
46+
47+
- run: mix deps.compile
48+
49+
- run: mix test

0 commit comments

Comments
 (0)