Skip to content

Commit

Permalink
Update Dependencies & CI (#78)
Browse files Browse the repository at this point in the history
* update deps

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.
```

* update asdf versions

* bump version to 0.7.3

* add LV 1.0 TODO

* actions:
- use `erlef/setup-beam@v1` instead of container
- use gh cache@v4
- always save cache

* actions: add `version-type: strict`
  • Loading branch information
type1fool authored Jul 14, 2024
1 parent 2bb677f commit 0503e5d
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 31 deletions.
26 changes: 14 additions & 12 deletions .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,39 +16,41 @@ jobs:
build:
name: Build & Test
runs-on: ubuntu-latest
container: ${{ matrix.elixir }}
concurrency: production
strategy:
matrix:
elixir: ["elixir:latest"]

steps:
- uses: actions/checkout@v3
- uses: erlef/setup-beam@v1
with:
version-type: strict
version-file: .tool-versions
- run: elixir --version
- run: mix local.hex --force
- run: mix local.rebar --force

- name: Hex Cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
save-always: true
path: deps
key: ${{ runner.os }}-${{ matrix.elixir }}-mix-${{ hashFiles('**/mix.lock') }}
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: |
${{ runner.os }}-${{ matrix.elixir }}-mix-${{ hashFiles('**/mix.lock') }}
${{ runner.os }}-${{ matrix.elixir }}-mix-
${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
${{ runner.os }}-mix-
${{ runner.os }}-
- name: Install dependencies
run: mix deps.get

- name: Compilation Cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
save-always: true
path: _build
key: ${{ runner.os }}-${{ matrix.elixir }}-compiled-${{ hashfiles('./mix.lock') }}
key: ${{ runner.os }}-compiled-${{ hashfiles('./mix.lock') }}
restore-keys: |
${{ runner.os }}-${{ matrix.elixir }}-compiled-${{ hashfiles('./mix.lock') }}
${{ runner.os }}-${{ matrix.elixir }}-compiled-
${{ runner.os }}-compiled-${{ hashfiles('./mix.lock') }}
${{ runner.os }}-compiled-
${{ runner.os }}-
- name: Compile
Expand Down
4 changes: 2 additions & 2 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
erlang 27.0
elixir 1.17.1-otp-27
erlang 27.0.1
elixir 1.17.2-otp-27
11 changes: 6 additions & 5 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule WebauthnComponents.MixProject do
# Don't forget to change the version in `package.json`
@name "WebauthnComponents"
@source_url "https://github.com/liveshowy/webauthn_components"
@version "0.7.2"
@version "0.7.3"

def project do
[
Expand Down Expand Up @@ -40,13 +40,14 @@ defmodule WebauthnComponents.MixProject do
{:ecto_ulid, "~> 0.3"},
{:ecto, "~> 3.10"},
{:ex_doc, "~> 0.34", only: [:dev], runtime: false},
{:floki, "~> 0.34.2", only: [:test]},
{:floki, "~> 0.36", only: [:test]},
{:jason, "~> 1.0"},
{:live_isolated_component, "~> 0.6.4", only: [:test]},
{:live_isolated_component, "~> 0.8", only: [:test]},
{:phoenix_ecto, "~> 4.4"},
{:phoenix_live_view, "~> 0.17"},
# TODO bump on release to {:phoenix_live_view, "~> 1.0.0"},
{:phoenix_live_view, "~> 0.20"},
{:phoenix, "~> 1.6"},
{:sourceror, "~> 0.13"},
{:sourceror, "~> 1.4"},
{:uuid, "~> 1.1"},
{:wax_, "~> 0.6.1"}
]
Expand Down
Loading

0 comments on commit 0503e5d

Please sign in to comment.