-
Notifications
You must be signed in to change notification settings - Fork 529
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check absinthe dependent libraries on CI runs
* Update elixir versions in CI to test 1.15, 1.16, and 1.17 * Update OTP version in CI to test 25, 26, and 27 * Update ubuntu version to 24.04 * Lower jaro_distance threshold slightly * Remove else part of with expression in generate_schema. Dialyzer saw that Absinthe.Schema.introspect will only return {:error, String.t()} if there is an error
- Loading branch information
Showing
4 changed files
with
69 additions
and
24 deletions.
There are no files selected for viewing
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
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-24.04 | ||
|
||
strategy: | ||
matrix: | ||
dependent: | ||
- 'absinthe_plug' | ||
- 'absinthe_phoenix' | ||
- 'absinthe_relay' | ||
|
||
steps: | ||
- name: Set up Elixir | ||
uses: erlef/setup-beam@v1 | ||
with: | ||
elixir-version: '1.17' | ||
otp-version: '27' | ||
|
||
- 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 }} |
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
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
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