Skip to content

Commit

Permalink
Try again
Browse files Browse the repository at this point in the history
  • Loading branch information
almirsarajcic committed Sep 17, 2024
1 parent c16479a commit 8a6d916
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/github_workflows.ex
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ defmodule GithubWorkflows do
name: "Generate an app and start the server",
if: "steps.result_cache.outputs.cache-hit != 'true'",
run:
"source #{config_file} && SHELL=/bin/#{shell} make -f test/scripts/Makefile serve",
"/bin/#{shell} -c 'source #{config_file} && SHELL=/bin/#{shell} make -f test/scripts/Makefile serve'",
shell: "/bin/#{shell} -l {0}"
],
[
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,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: /bin/bash -c 'source ~/.bashrc && 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 @@ -64,7 +64,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: /bin/bash -c 'source ~/.bashrc && 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 @@ -101,7 +101,7 @@ jobs:
shell: /bin/zsh -l {0}
- name: Generate an app and start the server
if: steps.result_cache.outputs.cache-hit != 'true'
run: source ~/.zshrc && SHELL=/bin/zsh make -f test/scripts/Makefile serve
run: /bin/zsh -c 'source ~/.zshrc && SHELL=/bin/zsh make -f test/scripts/Makefile serve'
shell: /bin/zsh -l {0}
- name: Check HTTP status code
if: steps.result_cache.outputs.cache-hit != 'true'
Expand Down Expand Up @@ -138,7 +138,7 @@ jobs:
shell: /bin/zsh -l {0}
- name: Generate an app and start the server
if: steps.result_cache.outputs.cache-hit != 'true'
run: source ~/.zshrc && SHELL=/bin/zsh make -f test/scripts/Makefile serve
run: /bin/zsh -c 'source ~/.zshrc && SHELL=/bin/zsh make -f test/scripts/Makefile serve'
shell: /bin/zsh -l {0}
- name: Check HTTP status code
if: steps.result_cache.outputs.cache-hit != 'true'
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,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: /bin/bash -c 'source ~/.bashrc && 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 @@ -68,7 +68,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: /bin/bash -c 'source ~/.bashrc && 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 @@ -105,7 +105,7 @@ jobs:
shell: /bin/zsh -l {0}
- name: Generate an app and start the server
if: steps.result_cache.outputs.cache-hit != 'true'
run: source ~/.zshrc && SHELL=/bin/zsh make -f test/scripts/Makefile serve
run: /bin/zsh -c 'source ~/.zshrc && SHELL=/bin/zsh make -f test/scripts/Makefile serve'
shell: /bin/zsh -l {0}
- name: Check HTTP status code
if: steps.result_cache.outputs.cache-hit != 'true'
Expand Down Expand Up @@ -142,7 +142,7 @@ jobs:
shell: /bin/zsh -l {0}
- name: Generate an app and start the server
if: steps.result_cache.outputs.cache-hit != 'true'
run: source ~/.zshrc && SHELL=/bin/zsh make -f test/scripts/Makefile serve
run: /bin/zsh -c 'source ~/.zshrc && SHELL=/bin/zsh make -f test/scripts/Makefile serve'
shell: /bin/zsh -l {0}
- name: Check HTTP status code
if: steps.result_cache.outputs.cache-hit != 'true'
Expand Down
6 changes: 4 additions & 2 deletions priv/static/Linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ function install() {
"Erlang")
sudo apt-get update
sudo apt-get -y install build-essential autoconf m4 libncurses5-dev libwxgtk3.0-gtk3-dev libwxgtk-webview3.0-gtk3-dev libgl1-mesa-dev libglu1-mesa-dev libpng-dev libssh-dev unixodbc-dev xsltproc fop libxml2-utils libncurses-dev openjdk-11-jdk
echo 'KERL_CONFIGURE_OPTIONS="--without-javac"' >>~/.kerlrc
if [ ! -f ~/.kerlrc ]; then
echo 'KERL_CONFIGURE_OPTIONS="--without-javac"' >~/.kerlrc
fi
mise use -g erlang@$erlang_version
mise reshim
;;
Expand Down Expand Up @@ -167,7 +169,7 @@ phx_tools="
██████╗░██╗░░██╗██╗░░██╗  ████████╗░█████╗░░█████╗░██╗░░░░░░██████╗ 
██╔══██╗██║░░██║╚██╗██╔╝  ╚══██╔══╝██╔══██╗██╔══██╗██║░░░░░██╔════╝ 
██████╔╝███████║░╚███╔╝░  ░░░██║░░░██║░░██║██║░░██║██║░░░░░╚█████╗░ 
██╔═══╝░██╔══██║██╔██╗░  ░░░██║░░░██║░░██║██║░░██║██║░░░░░░╚═══██╗ 
██╔═══╝░██╔══██║���██╔██╗░  ░░░██║░░░██║░░██║██║░░██║██║░░░░░░╚═══██╗ 
██║░░░░░██║░░██║██╔╝╚██╗  ░░░██║░░░╚█████╔╝╚█████╔╝███████╗██████╔╝ 
╚═╝░░░░░╚═╝░░╚═╝╚═╝░░╚═╝  ░░░╚═╝░░░░╚════╝░░╚════╝░╚══════╝╚═════╝░ 
"
Expand Down
4 changes: 3 additions & 1 deletion priv/static/macOS.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ function install() {
;;
"Erlang")
brew install autoconf [email protected] wxwidgets libxslt fop
echo 'KERL_CONFIGURE_OPTIONS="--without-javac" --with-ssl=$(brew --prefix [email protected])"' >>~/.kerlrc
if [ ! -f ~/.kerlrc ]; then
echo 'KERL_CONFIGURE_OPTIONS="--without-javac"' >~/.kerlrc
fi
mise use -g erlang@$erlang_version
mise reshim
;;
Expand Down
7 changes: 5 additions & 2 deletions test/scripts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ SHELL := $(shell echo $$SHELL)
.SHELLFLAGS := -eu -c

serve:
# initdb -D ~/pgdata -U postgres
# pg_ctl start -D ~/pgdata
eval "$(mise activate bash)"
mise activate --shims
mise reshim
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

0 comments on commit 8a6d916

Please sign in to comment.