Skip to content

Commit

Permalink
update actions test versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ckoch-cars committed Apr 4, 2024
1 parent dd2d1d6 commit a5dd573
Showing 1 changed file with 21 additions and 15 deletions.
36 changes: 21 additions & 15 deletions .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Elixir CI

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

Expand All @@ -13,15 +13,17 @@ permissions:

jobs:
build:

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

steps:
- uses: actions/checkout@v3
- name: Set up Elixir v1.14 OTP25
uses: erlef/setup-beam@v1
with:
elixir-version: "1.14.X" # Define the elixir version [required]
otp-version: "25.X" # Define the OTP version [required]
elixir-version: '1.14.X' # Define the elixir version [required]
otp-version: '25.X' # Define the OTP version [required]
- name: Restore dependencies cache
uses: actions/cache@v3
with:
Expand All @@ -33,11 +35,11 @@ jobs:
- name: Run tests
run: mix test

- name: Set up Elixir v1.14 OTP26
- name: Set up Elixir v1.15 OTP25
uses: erlef/setup-beam@v1
with:
elixir-version: "1.14.X" # Define the elixir version [required]
otp-version: "26.X" # Define the OTP version [required]
elixir-version: '1.15.X' # Define the elixir version [required]
otp-version: '25.X' # Define the OTP version [required]
- name: Restore dependencies cache
uses: actions/cache@v3
with:
Expand All @@ -49,11 +51,21 @@ jobs:
- name: Run tests
run: mix test

- name: Set up Elixir v1.15 OTP26
- name: Set up Elixir v1.14 OTP26
uses: erlef/setup-beam@v1
with:
elixir-version: "1.15.X" # Define the elixir version [required]
elixir-version: "1.14.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.15 OTP26
uses: erlef/setup-beam@v1
with:
elixir-version: '1.15.X' # Define the elixir version [required]
otp-version: '26.X' # Define the OTP version [required]
- name: Restore dependencies cache
uses: actions/cache@v3
with:
Expand All @@ -70,12 +82,6 @@ jobs:
with:
elixir-version: "1.16.X" # Define the elixir version [required]
otp-version: "26.X" # Define the OTP version [required]
- name: Restore dependencies cache
uses: actions/cache@v3
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-
- name: Install dependencies
run: mix deps.get
- name: Run tests
Expand Down

0 comments on commit a5dd573

Please sign in to comment.