Skip to content

Commit

Permalink
add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Nelson committed Jun 29, 2024
1 parent 4776e37 commit c3df40c
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI

on: push

jobs:
test:
name: Build and run tests
runs-on: ubuntu-20.04

steps:
- name: Checkout project
uses: actions/checkout@v3
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
otp-version: '26.2.1' # Define the OTP version [required]
elixir-version: '1.16.3-otp-26' # Define the elixir version [required]
- name: Restore dependencies cache
uses: actions/cache@v2
with:
path: ash_table/deps
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-
- uses: actions/cache@v1
name: Cache build
with:
path: ash_table/_build
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
- name: Install dependencies
run: mix deps.get
- name: Install testbed dependencies
run: mix deps.get
working-directory: ./test_bed
- name: Run elixir tests
run: mix test
working-directory: ./test_bed

0 comments on commit c3df40c

Please sign in to comment.