Skip to content

Commit

Permalink
fix: cache?
Browse files Browse the repository at this point in the history
  • Loading branch information
igas committed Jan 30, 2025
1 parent 6225a4c commit 87c8420
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@ jobs:
path: _build
- uses: erlef/[email protected]
with:
otp-version: 26.2
elixir-version: 1.17.3
otp-version: 26.x
- run: mix deps.get
- run: mix credo --format=sarif --mute-exit-status > credo_output.sarif
- run: mix compile
- run: mix credo suggest --format=sarif --mute-exit-status > credo.sarif
- name: Upload SARIF
uses: github/codeql-action/[email protected]
with:
# Path to SARIF file relative to the root of the repository
sarif_file: credo_output.sarif
sarif_file: credo.sarif

# dialyzer:
# runs-on: ${{ matrix.os || 'ubuntu-22.04' }}
# runs-on: ${{ matrix.os || 'ubuntu-24.04' }}

# steps:
# - uses: actions/[email protected]
Expand Down Expand Up @@ -58,24 +58,24 @@ jobs:
# - run: mix dialyzer --format github

test:
runs-on: ubuntu-24.04
runs-on: ${{ matrix.os || 'ubuntu-24.04' }}
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
key: ${{ github.job }}-${{ matrix.elixir }}-${{ hashFiles('mix.lock') }}-1
key: ${{ github.job }}-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles('mix.lock') }}-1
path: _build
- uses: erlef/[email protected]
with:
elixir-version: ${{ matrix.elixir }}
otp-version: 26.x
otp-version: ${{ matrix.otp }}
- run: mix deps.get
- run: mix test
strategy:
fail-fast: false
matrix:
include:
- elixir: 1.15.x
- elixir: 1.16.x
- elixir: 1.17.x
otp: 27.x
- elixir: 1.18.x
otp: 27.x
8 changes: 4 additions & 4 deletions lib/faker/internet.ex
Original file line number Diff line number Diff line change
Expand Up @@ -292,13 +292,13 @@ defmodule Faker.Internet do
## Examples
iex> Faker.Internet.slug()
"sint-deleniti-consequatur-ut"
"sint.deleniti.consequatur.ut"
iex> Faker.Internet.slug()
"sit_et"
"expedita_est_necessitatibus_cumque_aut"
iex> Faker.Internet.slug(["foo", "bar"])
"foo-bar"
iex> Faker.Internet.slug(["foo", "bar"], ["."])
"foo.bar"
iex> Faker.Internet.slug(["foo", "bar"], ["."])
"bar.foo"
"""
@spec slug() :: String.t()
def slug do
Expand Down

0 comments on commit 87c8420

Please sign in to comment.