Skip to content

Commit

Permalink
Add CI workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
kzemek committed Mar 23, 2024
1 parent f45132c commit 5333b76
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Elixir CI

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

permissions:
contents: read

env:
ELIXIR_VERSION: "1.16.2"
ERLANG_VERSION: "26.2"

jobs:
build:
name: Build and test
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./test/es6_maps_test

steps:
- uses: actions/checkout@v4

- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: ${{ env.ELIXIR_VERSION }}
otp-version: ${{ env.ERLANG_VERSION }}

- name: Restore dependencies cache
uses: actions/cache@v4
with:
path: deps
key: ${{ runner.os }}-mix-${{ env.ELIXIR_VERSION }}-${{ env.ERLANG_VERSION }}-${{ hashFiles('**/mix.lock') }}

- name: Install dependencies
run: mix deps.get

- name: Run tests
run: mix test

0 comments on commit 5333b76

Please sign in to comment.