Formatting #510
Workflow file for this run
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
on: push | |
jobs: | |
hydra-script-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Uninstall current Docker version | |
run: | | |
sudo apt-get remove -y docker docker-engine docker.io containerd runc | |
- name: Install Docker | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg \ | |
lsb-release | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg | |
echo \ | |
"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | |
sudo apt-get update | |
sudo apt-get install -y docker-ce docker-ce-cli containerd.io | |
- name: Verify Docker installation | |
run: docker --version | |
- name: Install jq | |
shell: bash | |
run: | | |
sudo apt install -y jq | |
- name: Load config file | |
shell: bash | |
run: | | |
contents="$(jq --arg GITHUB_TOKEN "${{ secrets.TOKEN }}" '.github_token = $GITHUB_TOKEN' euclid.json)" | |
echo -E "${contents}" > euclid.json | |
- name: Run steps | |
shell: bash | |
run: | | |
echo "Installing CARGO" | |
curl https://sh.rustup.rs -sSf | sh -s -- -y | |
echo "Cargo Installed" | |
echo "Installing ARGC" | |
cargo install argc | |
echo "ARGC Installed" | |
echo "Installing Scala" | |
curl -fL https://github.com/coursier/coursier/releases/download/v2.1.0/cs-x86_64-pc-linux.gz | gzip -d > cs && chmod +x cs && ./cs setup -y | |
echo "Scala Installed" | |
source ~/.profile | |
echo "Installing Giter" | |
cs install giter8 | |
echo "Gitter Installed" | |
scripts/hydra install | |
scripts/hydra build | |
scripts/hydra start_genesis | |
scripts/hydra stop | |
scripts/hydra destroy |