-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: use
master
branch of OpenIDConnect
- Loading branch information
1 parent
0e46efb
commit e1e9c09
Showing
11 changed files
with
521 additions
and
681 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,82 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
asdf: | ||
name: ASDF | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
# cache the ASDF directory, using the values from .tool-versions | ||
- name: ASDF cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.asdf | ||
key: ${{ runner.os }}-asdf-v2-${{ hashFiles('.tool-versions') }} | ||
id: asdf-cache | ||
# only run `asdf install` if we didn't hit the cache | ||
- uses: asdf-vm/actions/install@v2 | ||
if: steps.asdf-cache.outputs.cache-hit != 'true' | ||
|
||
build: | ||
name: Build Elixir | ||
runs-on: ubuntu-22.04 | ||
needs: asdf | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: ASDF cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.asdf | ||
key: ${{ runner.os }}-asdf-v2-${{ hashFiles('.tool-versions') }} | ||
id: asdf-cache | ||
- uses: mbta/actions/reshim-asdf@v1 | ||
- name: Restore dependencies cache | ||
id: deps-cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: deps | ||
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }} | ||
restore-keys: ${{ runner.os }}-mix- | ||
- name: Install dependencies | ||
run: | | ||
mix local.rebar --force | ||
mix local.hex --force | ||
mix deps.get | ||
elixir: | ||
name: Test Elixir | ||
runs-on: ubuntu-22.04 | ||
needs: build | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: ASDF cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.asdf | ||
key: ${{ runner.os }}-asdf-v2-${{ hashFiles('.tool-versions') }} | ||
id: asdf-cache | ||
- uses: mbta/actions/reshim-asdf@v1 | ||
- name: Restore dependencies cache | ||
id: deps-cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: deps | ||
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }} | ||
restore-keys: ${{ runner.os }}-mix- | ||
- name: Install dependencies | ||
run: | | ||
mix local.rebar --force | ||
mix local.hex --force | ||
- name: Compile (warnings as errors) | ||
run: mix compile --force --warnings-as-errors | ||
- name: Check formatting | ||
run: mix format --check-formatted | ||
- name: Run tests | ||
run: mix test --cover | ||
- name: Run Credo | ||
run: mix credo --strict |
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,2 @@ | ||
elixir 1.13.4-otp-24 | ||
erlang 24.3.4.14 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1 @@ | ||
# 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 your application as: | ||
# | ||
# config :ueberauth_oidc, key: :value | ||
# | ||
# and access this configuration in your application as: | ||
# | ||
# Application.get_env(:ueberauth_oidc, :key) | ||
# | ||
# You can also 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" | ||
import Config |
Oops, something went wrong.