-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Chris Nelson
committed
Jun 29, 2024
1 parent
4776e37
commit c3df40c
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |