Skip to content

Commit

Permalink
Try again
Browse files Browse the repository at this point in the history
  • Loading branch information
almirsarajcic committed Sep 18, 2024
1 parent ee548b8 commit 948d27d
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/github_workflows.ex
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ defmodule GithubWorkflows do

config_file =
case shell do
"bash" -> "~/.bashrc"
"bash" -> "~/.bash_profile"
"zsh" -> "~/.zshrc"
end

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ jobs:
shell: /bin/bash -l {0}
- name: Generate an app and start the server
if: steps.result_cache.outputs.cache-hit != 'true'
run: source ~/.bashrc && SHELL=/bin/bash make -f test/scripts/Makefile serve
run: source ~/.bash_profile && SHELL=/bin/bash make -f test/scripts/Makefile serve
shell: /bin/bash -l {0}
- name: Check HTTP status code
if: steps.result_cache.outputs.cache-hit != 'true'
Expand Down Expand Up @@ -320,7 +320,7 @@ jobs:
shell: /bin/bash -l {0}
- name: Generate an app and start the server
if: steps.result_cache.outputs.cache-hit != 'true'
run: source ~/.bashrc && SHELL=/bin/bash make -f test/scripts/Makefile serve
run: source ~/.bash_profile && SHELL=/bin/bash make -f test/scripts/Makefile serve
shell: /bin/bash -l {0}
- name: Check HTTP status code
if: steps.result_cache.outputs.cache-hit != 'true'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ jobs:
shell: /bin/bash -l {0}
- name: Generate an app and start the server
if: steps.result_cache.outputs.cache-hit != 'true'
run: source ~/.bashrc && SHELL=/bin/bash make -f test/scripts/Makefile serve
run: source ~/.bash_profile && SHELL=/bin/bash make -f test/scripts/Makefile serve
shell: /bin/bash -l {0}
- name: Check HTTP status code
if: steps.result_cache.outputs.cache-hit != 'true'
Expand Down Expand Up @@ -324,7 +324,7 @@ jobs:
shell: /bin/bash -l {0}
- name: Generate an app and start the server
if: steps.result_cache.outputs.cache-hit != 'true'
run: source ~/.bashrc && SHELL=/bin/bash make -f test/scripts/Makefile serve
run: source ~/.bash_profile && SHELL=/bin/bash make -f test/scripts/Makefile serve
shell: /bin/bash -l {0}
- name: Check HTTP status code
if: steps.result_cache.outputs.cache-hit != 'true'
Expand Down
2 changes: 1 addition & 1 deletion lib/phx_tools_web/components/seo_meta_tag_component.ex
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ defmodule PhxToolsWeb.SeoMetaTagComponent do
assigns =
assigns
|> assign_new(:description, fn -> String.trim(@default_description) end)
|> assign_new(:keywords, fn -> @keywords end)
|> assign_new(:image_url, fn -> static_url(Endpoint, ~p"/images/phx_tools.png") end)
|> assign_new(:keywords, fn -> @keywords end)
|> assign_new(:url, fn
%{attributes: %{url: url}} -> url
_assigns -> url(~p"/")
Expand Down
7 changes: 4 additions & 3 deletions priv/static/Linux.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /bin/bash
#!/bin/bash

# Make sure important variables exist if not already defined
#
Expand Down Expand Up @@ -30,7 +30,7 @@ current_shell=$(basename "$SHELL")

case $current_shell in
"bash" | "rbash")
config_file="$HOME/.bashrc"
config_file="$HOME/.bash_profile"
;;
"zsh")
config_file="$HOME/.zshrc"
Expand Down Expand Up @@ -88,6 +88,7 @@ function install() {
;;
"Phoenix")
mix local.hex --force
mix local.rebar --force
mix archive.install --force hex phx_new $phoenix_version
;;
"PostgreSQL")
Expand Down Expand Up @@ -149,7 +150,7 @@ phx_tools="
██████╗░██╗░░██╗██╗░░██╗  ████████╗░█████╗░░█████╗░██╗░░░░░░██████╗ 
██╔══██╗██║░░██║╚██╗██╔╝  ╚══██╔══╝██╔══██╗██╔══██╗██║░░░░░██╔════╝ 
██████╔╝███████║░╚███╔╝░  ░░░██║░░░██║░░██║██║░░██║██║░░░░░╚█████╗░ 
██╔═══╝░██╔══██║���██╔██╗░  ░░░██║░░░██║░░██║██║░░██║██║░░░░░░╚═══██╗ 
██╔═══╝░██╔══██║██╔██╗░  ░░░██║░░░██║░░██║██║░░██║██║░░░░░░╚═══██╗ 
██║░░░░░██║░░██║██╔╝╚██╗  ░░░██║░░░╚█████╔╝╚█████╔╝███████╗██████╔╝ 
╚═╝░░░░░╚═╝░░╚═╝╚═╝░░╚═╝  ░░░╚═╝░░░░╚════╝░░╚════╝░╚══════╝╚═════╝░ 
"
Expand Down
10 changes: 6 additions & 4 deletions priv/static/macOS.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /bin/bash
#!/bin/bash

# Make sure important variables exist if not already defined
#
Expand Down Expand Up @@ -30,7 +30,7 @@ current_shell=$(basename "$SHELL")

case $current_shell in
"bash" | "rbash")
config_file="$HOME/.bashrc"
config_file="$HOME/.bash_profile"
;;
"zsh")
config_file="$HOME/.zshrc"
Expand Down Expand Up @@ -65,7 +65,7 @@ function already_installed() {
which xcode-select >/dev/null
;;
*)
echo "Invalid name argument on checking"
echo "Invalid name argument on checking: $1"
exit 1
;;
esac
Expand Down Expand Up @@ -95,6 +95,7 @@ function install() {
;;
"Phoenix")
mix local.hex --force
mix local.rebar --force
mix archive.install --force hex phx_new $phoenix_version
;;
"PostgreSQL")
Expand All @@ -108,7 +109,8 @@ function install() {
xcode-select --install
;;
*)
echo "Invalid name argument on install"
echo "Invalid name argument on install: $1"
exit 1
;;
esac
}
Expand Down
5 changes: 3 additions & 2 deletions test/scripts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ serve:
initdb -D ~/pgdata -U postgres
pg_ctl start -D ~/pgdata
mix phx.new --no-install phx_tools_test
cd phx_tools_test && mix local.rebar --force && mix setup
cd phx_tools_test && elixir --erl '-detached' -S mix phx.server
cd phx_tools_test
mix setup
elixir --erl '-detached' -S mix phx.server

0 comments on commit 948d27d

Please sign in to comment.