Fix Repo.advisory_xact_lock/1 to handle atom names #77
Workflow file for this run
This file contains hidden or 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
| name: Github Actions CI | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| jobs: | |
| build: | |
| # Containers must run in Linux based operating systems | |
| runs-on: ubuntu-24.04 | |
| name: Build and test | |
| env: | |
| MIX_ENV: test | |
| strategy: | |
| matrix: | |
| otp: ["28.3"] | |
| elixir: ["1.19.4"] | |
| services: | |
| postgres: | |
| image: postgres:17-alpine | |
| env: | |
| POSTGRES_USER: postgres | |
| POSTGRES_PASSWORD: postgres | |
| POSTGRES_DB: bitcrowd_ecto_test | |
| ports: | |
| - 5432:5432 | |
| options: >- | |
| --health-cmd pg_isready | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| steps: | |
| - name: Check out repository code | |
| uses: actions/checkout@v3 | |
| - name: Set up Elixir | |
| uses: erlef/setup-beam@v1 | |
| with: | |
| otp-version: ${{matrix.otp}} | |
| elixir-version: ${{matrix.elixir}} | |
| version-type: "strict" | |
| - run: mix local.hex --force | |
| - run: mix local.rebar --force | |
| - name: Restore dependencies cache | |
| uses: actions/cache@v3 | |
| with: | |
| path: deps | |
| key: v1-mix-${{ runner.os }}-${{ hashFiles('**/mix.lock') }} | |
| restore-keys: v1-mix-${{ runner.os }} | |
| - name: Restore build cache | |
| uses: actions/cache@v3 | |
| with: | |
| path: _build | |
| key: v1-build-${{ runner.os }}-${{ hashFiles('**/mix.lock') }} | |
| restore-keys: v1-build-${{ runner.os }} | |
| - name: Install dependencies | |
| run: mix do deps.get, compile | |
| - name: Restore plts cache | |
| uses: actions/cache@v3 | |
| with: | |
| path: _plts | |
| key: v1-plt-${{ runner.os }}-${{ hashFiles('**/mix.lock') }} | |
| restore-keys: v1-plt-${{ runner.os }} | |
| - name: Linter | |
| run: mix lint | |
| - name: Init DB | |
| run: mix do ecto.create, ecto.migrate | |
| - name: Run tests | |
| run: mix test |