Skip to content

Commit

Permalink
Check absinthe dependent libraries on CI runs
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanjos committed Jun 13, 2024
1 parent 1e02284 commit 03a8e8b
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/check_dependents.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Check Dependents

on:
push:
pull_request:
branches:
- master

jobs:
test_dependents:
name: Ensure ${{ matrix.dependent }} tests pass
runs-on: ubuntu-20.04

strategy:
matrix:
dependent:
- 'absinthe_plug'
- 'absinthe_phoenix'
- 'absinthe_relay'

steps:
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: '1.13'
otp-version: '24'

- name: Checkout absinthe
uses: actions/checkout@v4

- name: Checkout ${{ matrix.dependent }}
uses: actions/checkout@v4
with:
repository: 'absinthe-graphql/${{ matrix.dependent }}'
path: '${{ matrix.dependent }}'

- name: Install absinthe package dependencies
run: mix deps.get

- name: Update absinthe dependency
run: 'sed -i -e "s|{:absinthe,.*|{:absinthe, path: \"$GITHUB_WORKSPACE\", override: true},|" mix.exs'
working-directory: ./${{ matrix.dependent }}

- name: Install ${{ matrix.dependent }} package dependencies
run: mix deps.get
working-directory: ./${{ matrix.dependent }}

- name: Run unit tests
run: |
mix clean
mix test
working-directory: ./${{ matrix.dependent }}

0 comments on commit 03a8e8b

Please sign in to comment.