-
Notifications
You must be signed in to change notification settings - Fork 4
34 lines (30 loc) · 785 Bytes
/
Copy pathelixir.yml
File metadata and controls
34 lines (30 loc) · 785 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Elixir CI
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup rust
uses: actions-rs/toolchain@v1
with:
default: true
toolchain: stable
profile: minimal
components: rustfmt, clippy
- name: Setup elixir
uses: erlef/setup-beam@v1
with:
elixir-version: '1.14.x'
otp-version: '25.x'
- name: Install Dependencies
run: mix deps.get
- name: Check Elixir Formatting
run: mix format --check-formatted
- name: Check Rust Formatting
working-directory: "native/sled_nif"
run: cargo fmt -- --check
- name: Compile
run: MIX_ENV=test mix compile --warnings-as-errors
- name: Run Tests
run: mix test