Skip to content

Commit

Permalink
add GH actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ckoch-cars committed Sep 16, 2024
1 parent 8d6707f commit e018c48
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Elixir CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
merge_group:
types: [checks_requested]

permissions:
contents: read

jobs:
build:

name: Build and test
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Elixir v1.16 OTP26
uses: erlef/setup-beam@v1
with:
elixir-version: "1.16.X" # Define the elixir version [required]
otp-version: "26.X" # Define the OTP version [required]
- name: Install dependencies
run: mix deps.get
- name: Run tests
run: mix test

- name: Set up Elixir v1.17 OTP26
uses: erlef/setup-beam@v1
with:
elixir-version: "1.17.X" # Define the elixir version [required]
otp-version: "26.X" # Define the OTP version [required]
- name: Install dependencies
run: mix deps.get
- name: Run tests
run: mix test

- name: Set up Elixir v1.17 OTP27
uses: erlef/setup-beam@v1
with:
elixir-version: "1.17.X" # Define the elixir version [required]
otp-version: "27.X" # Define the OTP version [required]
- name: Install dependencies
run: mix deps.get
- name: Run tests
run: mix test

0 comments on commit e018c48

Please sign in to comment.