From b061ad6d1270b1bf1e4fe42e28f0bb60be85072d Mon Sep 17 00:00:00 2001 From: Philip Sampaio Date: Tue, 8 Aug 2023 17:25:09 -0300 Subject: [PATCH] Create ci.yml Using generated file from GitHub template. --- .github/workflows/ci.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 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..9ad9d9e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,38 @@ +name: Elixir CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +permissions: + contents: read + +jobs: + build: + + name: Build and test + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Set up Elixir + uses: erlef/setup-beam@v1.16 + with: + elixir-version: '1.15.2' + otp-version: '26.0' + + - name: Restore dependencies cache + uses: actions/cache@v3 + 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