diff --git a/.ci/install_chrome.sh b/.ci/install_chrome.sh deleted file mode 100755 index 96a9feb00..000000000 --- a/.ci/install_chrome.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env bash -set -e - -# Install Google Chrome -curl -L https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - -sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' -sudo apt-get update -sudo apt-get install google-chrome-stable - -# Install ChromeDriver -stable_version=`curl -L https://chromedriver.storage.googleapis.com/LATEST_RELEASE` -curl -L -O https://chromedriver.storage.googleapis.com/${stable_version}/chromedriver_linux64.zip -unzip chromedriver_linux64.zip -chmod +x chromedriver -sudo mv chromedriver /usr/local/bin/ diff --git a/.ci/install_chromedriver.sh b/.ci/install_chromedriver.sh new file mode 100755 index 000000000..4caab40ea --- /dev/null +++ b/.ci/install_chromedriver.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash +set -e + +# Install Google Chrome -- Comes pre-installed in Github Actions VM +# curl -L https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - +# sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' +# sudo apt-get update +# sudo apt-get install google-chrome-stable + +# Install ChromeDriver +stable_version=`curl -L https://chromedriver.storage.googleapis.com/LATEST_RELEASE` +curl -L -O https://chromedriver.storage.googleapis.com/${stable_version}/chromedriver_linux64.zip +unzip chromedriver_linux64.zip +chmod +x chromedriver +sudo mv chromedriver /usr/local/bin/ diff --git a/.ci/install_runtimes.sh b/.ci/install_runtimes.sh index 6c9e70223..6e97d4844 100755 --- a/.ci/install_runtimes.sh +++ b/.ci/install_runtimes.sh @@ -9,8 +9,9 @@ os_name=$(case $MATRIX_OS in echo -n 'ubuntu~bionic' ;; esac) - wget -O erlang.deb https://packages.erlang-solutions.com/erlang/debian/pool/esl-erlang_23.2.3-1~${os_name}_amd64.deb wget -O elixir.deb https://packages.erlang-solutions.com/erlang/debian/pool/elixir_1.11.2-1~${os_name}_all.deb sudo dpkg -i erlang.deb sudo dpkg -i elixir.deb + +curl -sL https://deb.nodesource.com/setup_14.x | sudo bash - diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 79729c9dd..f827c8a0c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,6 +27,7 @@ jobs: --health-timeout 5s --health-retries 5 steps: + - run: which chromedriver - name: Install package dependencies run: sudo apt-get install net-tools wireguard unzip - uses: actions/checkout@v2 @@ -38,6 +39,7 @@ jobs: run: | mix local.hex --force && mix local.rebar --force mix deps.get --only test + npm install --prefix apps/fg_http/assets - name: Setup Database run: | mix ecto.create