mirror of
https://github.com/danbee/chess
synced 2026-06-21 05:12:22 +00:00
Compare commits
16 Commits
01e2ed532c
...
8e23c2d7f3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8e23c2d7f3 | ||
| 0b66ad1d6c | |||
| 84d372321a | |||
| 08ac36a5cc | |||
| fb295cd706 | |||
| 7ebd767ba7 | |||
| 922b39e5b4 | |||
| 977828a75f | |||
| 08b22bff50 | |||
| 853366799e | |||
| 021273d07d | |||
| c7bbc3c057 | |||
| 6d66ef6912 | |||
| 4958ca823b | |||
|
|
8875019e2d | ||
| 4d6de508e9 |
38
.github/workflows/elixir.yml
vendored
Normal file
38
.github/workflows/elixir.yml
vendored
Normal file
@ -0,0 +1,38 @@
|
||||
name: Elixir CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
pull_request:
|
||||
branches: [ "main" ]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
env:
|
||||
MIX_ENV: test
|
||||
ImageOS: ubuntu20
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
name: Build and test
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up Elixir
|
||||
uses: erlef/setup-beam@988e02bfe678367a02564f65ca2e37726dc0268f
|
||||
with:
|
||||
elixir-version: '1.14.1'
|
||||
otp-version: '24'
|
||||
- name: Restore dependencies 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 deps.get
|
||||
- name: Run tests
|
||||
run: mix test
|
||||
@ -403,9 +403,9 @@ minimist@^1.2.5:
|
||||
integrity sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==
|
||||
|
||||
nanoid@^3.1.23:
|
||||
version "3.1.23"
|
||||
resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.1.23.tgz#f744086ce7c2bc47ee0a8472574d5c78e4183a81"
|
||||
integrity sha512-FiB0kzdP0FFVGDKlRLEQ1BgDzU87dy5NnzjeW9YZNt+/c3+q82EQDUwniSAUxp/F0gFNI1ZhKU1FqYsMuqZVnw==
|
||||
version "3.3.4"
|
||||
resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.4.tgz#730b67e3cd09e2deacf03c027c81c9d9dbc5e8ab"
|
||||
integrity sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==
|
||||
|
||||
nomnom@1.8.1:
|
||||
version "1.8.1"
|
||||
|
||||
@ -19,5 +19,5 @@ config :chess, Chess.Repo,
|
||||
adapter: Ecto.Adapters.Postgres,
|
||||
url: System.get_env("DATABASE_URL"),
|
||||
database: "",
|
||||
ssl: true,
|
||||
ssl: false,
|
||||
pool_size: 1
|
||||
|
||||
2
mix.exs
2
mix.exs
@ -39,7 +39,7 @@ defmodule Chess.Mixfile do
|
||||
{:comeonin, "~> 5.0"},
|
||||
{:cowboy, "~> 2.0"},
|
||||
{:credo, "~> 1.0", only: [:dev, :test]},
|
||||
{:dart_sass, "~> 0.5", runtime: Mix.env() == :dev},
|
||||
{:dart_sass, "~> 0.7", runtime: Mix.env() == :dev},
|
||||
{:ecto_sql, "~> 3.0"},
|
||||
{:floki, "~> 0.34", only: :test},
|
||||
{:esbuild, "~> 0.6", runtime: Mix.env() == :dev},
|
||||
|
||||
2
mix.lock
2
mix.lock
@ -11,7 +11,7 @@
|
||||
"cowboy_telemetry": {:hex, :cowboy_telemetry, "0.4.0", "f239f68b588efa7707abce16a84d0d2acf3a0f50571f8bb7f56a15865aae820c", [:rebar3], [{:cowboy, "~> 2.7", [hex: :cowboy, repo: "hexpm", optional: false]}, {:telemetry, "~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "7d98bac1ee4565d31b62d59f8823dfd8356a169e7fcbb83831b8a5397404c9de"},
|
||||
"cowlib": {:hex, :cowlib, "2.11.0", "0b9ff9c346629256c42ebe1eeb769a83c6cb771a6ee5960bd110ab0b9b872063", [:make, :rebar3], [], "hexpm", "2b3e9da0b21c4565751a6d4901c20d1b4cc25cbb7fd50d91d2ab6dd287bc86a9"},
|
||||
"credo": {:hex, :credo, "1.6.3", "0a9f8925dbc8f940031b789f4623fc9a0eea99d3eed600fe831e403eb96c6a83", [:mix], [{:bunt, "~> 0.2.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:file_system, "~> 0.2.8", [hex: :file_system, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "1167cde00e6661d740fc54da2ee268e35d3982f027399b64d3e2e83af57a1180"},
|
||||
"dart_sass": {:hex, :dart_sass, "0.5.1", "d45f20a8e324313689fb83287d4702352793ce8c9644bc254155d12656ade8b6", [:mix], [{:castore, ">= 0.0.0", [hex: :castore, repo: "hexpm", optional: false]}], "hexpm", "24f8a1c67e8b5267c51a33cbe6c0b5ebf12c2c83ace88b5ac04947d676b4ec81"},
|
||||
"dart_sass": {:hex, :dart_sass, "0.7.0", "7979e056cb74fd6843e1c72db763cffc7726a9192a657735b7d24c0d9c26a1ce", [:mix], [{:castore, ">= 0.0.0", [hex: :castore, repo: "hexpm", optional: false]}], "hexpm", "4a8e70bca41aa00846398abdf5ad8a64d7907a0f7bf40145cd2e40d5971629f2"},
|
||||
"db_connection": {:hex, :db_connection, "2.4.3", "3b9aac9f27347ec65b271847e6baeb4443d8474289bd18c1d6f4de655b70c94d", [:mix], [{:connection, "~> 1.0", [hex: :connection, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "c127c15b0fa6cfb32eed07465e05da6c815b032508d4ed7c116122871df73c12"},
|
||||
"decimal": {:hex, :decimal, "2.0.0", "a78296e617b0f5dd4c6caf57c714431347912ffb1d0842e998e9792b5642d697", [:mix], [], "hexpm", "34666e9c55dea81013e77d9d87370fe6cb6291d1ef32f46a1600230b1d44f577"},
|
||||
"ecto": {:hex, :ecto, "3.9.4", "3ee68e25dbe0c36f980f1ba5dd41ee0d3eb0873bccae8aeaf1a2647242bffa35", [:mix], [{:decimal, "~> 1.6 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "de5f988c142a3aa4ec18b85a4ec34a2390b65b24f02385c1144252ff6ff8ee75"},
|
||||
|
||||
5
nixpacks.toml
Normal file
5
nixpacks.toml
Normal file
@ -0,0 +1,5 @@
|
||||
[phases.install]
|
||||
aptPkgs = ["...", "yarnpkg", "build-essential"]
|
||||
|
||||
[phases.build]
|
||||
cmds = ["mix compile", "mix ecto.setup", "pushd assets && yarnpkg install && popd", "mix assets.deploy"]
|
||||
Loading…
Reference in New Issue
Block a user