[GRAPH-1084] Check Absinthe dependents in CI #1
Workflow file for this run
This file contains 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: CI:Check Dependents | |
on: | |
push: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
test_dependents: | |
name: Ensure dependents tests pass | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Set up Elixir | |
uses: erlef/setup-beam@v1 | |
with: | |
elixir-version: '1.15' | |
otp-version: '26' | |
- name: Checkout absinthe | |
uses: actions/checkout@v4 | |
- name: Checkout absinthe_plug | |
uses: actions/checkout@v4 | |
with: | |
repository: 'absinthe-graphql/absinthe_plug' | |
path: 'absinthe_plug' | |
- name: Install absinthe package dependencies | |
run: mix deps.get | |
- name: Update absinthe dependency | |
run: 'sed -i -e "s|{:absinthe.*|{:absinthe, path: \"$GITHUB_WORKSPACE\"},|" mix.exs' | |
working-directory: ./absinthe_plug | |
- name: Install dependent package dependencies | |
run: mix deps.get | |
working-directory: ./absinthe_plug | |
- name: Run unit tests | |
run: | | |
mix clean | |
mix test | |
working-directory: ./absinthe_plug |