diff --git a/.formatter.exs b/.formatter.exs index 2bed17c..d2cda26 100644 --- a/.formatter.exs +++ b/.formatter.exs @@ -1,3 +1,4 @@ +# Used by "mix format" [ - inputs: ["mix.exs", "{config,lib,test}/**/*.{ex,exs}"] + inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"] ] diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d165ec6..daf0121 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,11 +12,11 @@ env: jobs: static_code_analysis: name: Static Code Analysis - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 strategy: matrix: - elixir: [1.11] - otp: [23.2] + otp: ["26.2.1"] + elixir: ["1.16.1", "1.17.3"] steps: - name: Cancel Previous Runs uses: styfle/cancel-workflow-action@0.6.0 @@ -29,10 +29,10 @@ jobs: fetch-depth: 0 - name: Setup - uses: erlef/setup-beam@v1 + uses: erlef/setup-beam@v1.18.2 with: + otp-version: ${{matrix.otp}} elixir-version: ${{ matrix.elixir }} - otp-version: ${{ matrix.otp }} - name: Install Dependencies if: steps.mix-cache.outputs.cache-hit != 'true' @@ -51,12 +51,12 @@ jobs: unit_tests: name: Unit Tests - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 strategy: fail-fast: false matrix: - elixir: [1.11] - otp: [23.2] + otp: ["26.2.1"] + elixir: ["1.16.1", "1.17.3"] steps: - name: Cancel Previous Runs uses: styfle/cancel-workflow-action@0.6.0 @@ -69,10 +69,10 @@ jobs: fetch-depth: 0 - name: Setup - uses: erlef/setup-beam@v1 + uses: erlef/setup-beam@v1.18.2 with: + otp-version: ${{matrix.otp}} elixir-version: ${{ matrix.elixir }} - otp-version: ${{ matrix.otp }} - name: Install Dependencies if: steps.mix-cache.outputs.cache-hit != 'true' diff --git a/.gitignore b/.gitignore index 0f8fa65..5e90d5e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,14 +1,14 @@ # The directory Mix will write compiled artifacts to. -/_build +/_build/ # If you run "mix test --cover", coverage assets end up here. -/cover +/cover/ # The directory Mix downloads your dependencies sources to. -/deps +/deps/ -# Where 3rd-party dependencies like ExDoc output generated docs. -/doc +# Where third-party dependencies like ExDoc output generated docs. +/doc/ # Ignore .fetch files in case you like to edit your project deps locally. /.fetch @@ -19,5 +19,11 @@ erl_crash.dump # Also ignore archive artifacts (built via "mix archive.build"). *.ez +# Ignore package tarball (built via "mix hex.build"). +oembed-*.tar + +# Temporary files, for example, from tests. +/tmp/ + # Ignore Mix lock file mix.lock diff --git a/config/config.exs b/config/config.exs deleted file mode 100644 index 59eaa64..0000000 --- a/config/config.exs +++ /dev/null @@ -1,30 +0,0 @@ -# This file is responsible for configuring your application -# and its dependencies with the aid of the Mix.Config module. -use Mix.Config - -# This configuration is loaded before any dependency and is restricted -# to this project. If another project depends on this project, this -# file won't be loaded nor affect the parent project. For this reason, -# if you want to provide default values for your application for -# 3rd-party users, it should be done in your "mix.exs" file. - -# You can configure for your application as: -# -# config :oembed, key: :value -# -# And access this configuration in your application as: -# -# Application.get_env(:oembed, :key) -# -# Or configure a 3rd-party app: -# -# config :logger, level: :info -# - -# It is also possible to import configuration files, relative to this -# directory. For example, you can emulate configuration per environment -# by uncommenting the line below and defining dev.exs, test.exs and such. -# Configuration from the imported file will override the ones defined -# here (which is why it is important to import them last). -# -# import_config "#{Mix.env}.exs"