From c3df40cc33d2fc515540b40f36447e595ca14521 Mon Sep 17 00:00:00 2001 From: Chris Nelson Date: Sat, 29 Jun 2024 17:53:38 -0400 Subject: [PATCH] add CI --- .github/workflows/ci.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..e0d63bf --- /dev/null +++ b/.github/workflows/ci.yml @@ -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