Skip to content

chore(deps): bump the actions group with 5 updates #467

chore(deps): bump the actions group with 5 updates

chore(deps): bump the actions group with 5 updates #467

Workflow file for this run

# SPDX-License-Identifier: MPL-2.0
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Elixir CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
name: Build and test
runs-on: ubuntu-latest
timeout-minutes: 30
env:
MIX_ENV: test
POSTGRES_PASSWORD: ${{ github.run_id }}
ARANGO_USERNAME: root
ARANGO_PASSWORD: ${{ github.run_id }}
services:
postgres:
image: postgres:16-alpine@sha256:79950da386bda7fcc9d57aa9aa9be6c6d7407596a9b8f68014b09a778a9ab316
env:
POSTGRES_PASSWORD: ${{ github.run_id }}
ports:
- 5432:5432
options: >-
--health-cmd "pg_isready -U postgres -d postgres"
--health-interval 10s
--health-timeout 5s
--health-retries 5
arangodb:
image: arangodb:3.12@sha256:95567b13d74dbec3869468f88c31a53ae598fa5f90e0e2e582df89b7b6893ae7
env:
ARANGO_ROOT_PASSWORD: ${{ github.run_id }}
ports:
- 8529:8529
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Elixir
uses: erlef/setup-beam@54075bcc5e249e4758d363f27d099f55d843f124 # v1.24.1
with:
elixir-version: '1.18.2'
rebar3-version: '3.24.0'
otp-version: '27.2.1'
- name: Restore dependencies cache
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v5
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-
- name: Install dependencies
run: mix deps.get
- name: Wait for ArangoDB
run: |
for attempt in $(seq 1 30); do
if curl -fsS -u "root:${ARANGO_PASSWORD}" http://localhost:8529/_api/version >/dev/null; then
exit 0
fi
sleep 2
done
echo "::error::ArangoDB did not become ready"
exit 1
- name: Run tests
run: mix test