Skip to content

Merge pull request #39 from kurtraschke/dependabot/github_actions/erl… #81

Merge pull request #39 from kurtraschke/dependabot/github_actions/erl…

Merge pull request #39 from kurtraschke/dependabot/github_actions/erl… #81

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Elixir CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
concurrency:
group: environment-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
name: Build and test
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v4
- name: Set up Elixir
uses: erlef/setup-beam@2f0cc07b4b9bea248ae098aba9e1a8a1de5ec24c
with:
elixir-version: '1.14.5' # Define the elixir version [required]
otp-version: '25.3.2' # Define the OTP version [required]
- name: Restore dependencies cache
uses: actions/cache@v4
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
run: mix test