Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Dependencies & CI #78

Merged
merged 6 commits into from
Jul 14, 2024
Merged

Update Dependencies & CI #78

merged 6 commits into from
Jul 14, 2024

Conversation

type1fool
Copy link
Collaborator

@type1fool type1fool commented Jul 14, 2024

Overview

This PR updates dependencies, which will allow use of new Phoenix LiveView APIs.

https://hexdocs.pm/phoenix_live_view/1.0.0-rc.6/changelog.html

Changes

  • Updated Hex dependencies
  • Updated Erlang & Elixir versions in .tool-versions
  • Updated GitHub Actions config to use erlef/setup-beam and always save cache
  • Bumped version to 0.7.3

Tests

I created a fresh wac_test app, added webauthn_components as a local path dependency, and confirmed mix wac.install completed successfully.

==> webauthn_components
Compiling 22 files (.ex)
Generated webauthn_components app
==> wac_test
Generated wac_test app
* creating lib/wac_test/identity.ex
* creating lib/wac_test/user_token_cleaner.ex
* creating lib/wac_test/identity/user.ex
* creating lib/wac_test/identity/user_key.ex
* creating lib/wac_test/identity/user_token.ex
* creating priv/repo/migrations/20240714191229_users.exs
* creating priv/repo/migrations/20240714191230_user_keys.exs
* creating priv/repo/migrations/20240714191231_user_tokens.exs
* creating test/wac_test/identity_test.exs
* creating test/wac_test_web/live/authentication_live_test.exs
* creating test/support/identity_fixtures.ex
* creating lib/wac_test_web/controllers/session.ex
* creating lib/wac_test_web/controllers/page_controller.ex
* creating lib/wac_test_web/live/authentication_live.ex
* creating lib/wac_test_web/live/authentication_live.html.heex
* creating lib/wac_test_web/session_hooks/assign_user.ex
* creating lib/wac_test_web/session_hooks/require_user.ex
* creating lib/wac_test_web/components/navigation_components.ex
* creating lib/wac_test_web/components/navigation/navbar.html.heex
* creating lib/wac_test_web/components/navigation/nav_link.html.heex
* updating assets/js/app.js
* updating lib/wac_test_web/router.ex

✅ Successfully scaffolded WebauthnComponents for WacTest

📚 Resources

- Repo: https://github.com/liveshowy/webauthn_components
- Hex:  https://hex.pm/packages/webauthn_components
- Docs: https://hexdocs.pm/webauthn_components/readme.html

The Phoenix server started successfully, and the Passkey functionality was working as expected.

image

Compilation was also successful without any warnings:

▶ mix deps.compile webauthn_components --force
==> webauthn_components
Compiling 22 files (.ex)
Generated webauthn_components app

▶ mix compile --warnings-as-errors --force --return-errors
Compiling 25 files (.ex)
Generated wac_test app

Collaborators

  1. @type1fool

Before:
```
▶ mix hex.outdated
Dependency               Current  Latest   Status
credo                    1.7.7    1.7.7    Up-to-date
dialyxir                 1.4.3    1.4.3    Up-to-date
ecto                     3.11.2   3.11.2   Up-to-date
ecto_ulid                0.3.0    0.3.0    Up-to-date
ex_doc                   0.34.1   0.34.2   Update possible
floki                    0.34.3   0.36.2   Update not possible
jason                    1.4.1    1.4.3    Update possible
live_isolated_component  0.6.5    0.8.0    Update not possible
phoenix                  1.7.14   1.7.14   Up-to-date
phoenix_ecto             4.6.1    4.6.2    Update possible
phoenix_live_view        0.19.5   0.20.17  Update not possible
sourceror                0.14.1   1.4.0    Update not possible
uuid                     1.1.8    1.1.8    Up-to-date
wax_                     0.6.5    0.6.5    Up-to-date

Run `mix hex.outdated APP` to see requirements for a specific dependency.

To view the diffs in each available update, visit:
https://hex.pm/l/PaspZ
```

After:
```
▶ mix hex.outdated
Dependency               Current  Latest   Status
credo                    1.7.7    1.7.7    Up-to-date
dialyxir                 1.4.3    1.4.3    Up-to-date
ecto                     3.11.2   3.11.2   Up-to-date
ecto_ulid                0.3.0    0.3.0    Up-to-date
ex_doc                   0.34.2   0.34.2   Up-to-date
floki                    0.36.2   0.36.2   Up-to-date
jason                    1.4.3    1.4.3    Up-to-date
live_isolated_component  0.8.0    0.8.0    Up-to-date
phoenix                  1.7.14   1.7.14   Up-to-date
phoenix_ecto             4.6.2    4.6.2    Up-to-date
phoenix_live_view        0.20.17  0.20.17  Up-to-date
sourceror                1.4.0    1.4.0    Up-to-date
uuid                     1.1.8    1.1.8    Up-to-date
wax_                     0.6.5    0.6.5    Up-to-date

Run `mix hex.outdated APP` to see requirements for a specific dependency.
```
@type1fool type1fool self-assigned this Jul 14, 2024
@type1fool type1fool changed the title Update deps Update Dependencies Jul 14, 2024
- use `erlef/setup-beam@v1` instead of container
- use gh cache@v4
- always save cache
@type1fool type1fool changed the title Update Dependencies Update Dependencies & CI Jul 14, 2024
@type1fool type1fool merged commit 0503e5d into main Jul 14, 2024
1 check passed
@type1fool type1fool deleted the update-deps branch July 14, 2024 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant