Skip to content

Commit 73b8a36

Browse files
authored
Add Elixir CI workflow configuration (#1)
* Add Elixir CI workflow configuration * CI Changes * CI Changes * Add write permissions * Remove cache
1 parent b4491e9 commit 73b8a36

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

.github/workflows/elixir.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
6+
name: Elixir CI
7+
8+
on:
9+
push:
10+
branches: [ "main" ]
11+
pull_request:
12+
branches: [ "main" ]
13+
14+
permissions:
15+
contents: read
16+
id-token: write
17+
18+
jobs:
19+
build:
20+
21+
name: Build and test
22+
runs-on: ubuntu-latest
23+
24+
steps:
25+
- uses: actions/checkout@v4
26+
- name: Set up Elixir
27+
uses: erlef/setup-beam@v1
28+
with:
29+
elixir-version: '1.17.3'
30+
otp-version: '26.2.5'
31+
- name: Install dependencies
32+
run: mix deps.get
33+
- name: Run tests with coverage
34+
run: mix lcov
35+
- uses: qltysh/qlty-action/coverage@ea1eaf434a27bf50cd544153084fbb11c52aaf84
36+
with:
37+
oidc: true
38+
files: cover/lcov.info

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ defmodule Sample.MixProject do
55
[
66
app: :sample,
77
version: "0.1.0",
8-
elixir: "~> 1.19",
8+
elixir: "~> 1.15",
99
start_permanent: Mix.env() == :prod,
1010
deps: deps(),
1111
test_coverage: [

0 commit comments

Comments
 (0)