@@ -20,75 +20,105 @@ jobs:
2020 uses : GuillaumeFalourd/clone-github-repo-action@v2.3
2121 with :
2222 branch : main
23- owner : peaqnetwork
23+ owner : sfffaaa
2424 repository : simple-ci-poc
25- path-to-clone : ../simple-ci-poc
25+
26+ - name : Clone peaq-bc-repo
27+ uses : GuillaumeFalourd/clone-github-repo-action@v2.3
28+ with :
29+ depth : 1
30+ branch : main # Should change the branch
31+ owner : peaqnetwork
32+ repository : peaq-bc-test
33+
34+ - name : Clone parachain-launch
35+ uses : GuillaumeFalourd/clone-github-repo-action@v2.3
36+ with :
37+ branch : dev # Should change the branch
38+ owner : peaqnetwork
39+ repository : parachain-launch
40+
41+ - name : Move to project to correct place
42+ run : |
43+ mv simple-ci-poc ../
44+ mv peaq-bc-test ../
45+ mv parachain-launch ../
2646
2747 - name : Setup ENV for the simple CI
2848 working-directory : ../
2949 run : |
50+ mkdir -p result
51+ pwd
52+ ls .
3053 # Need to implement that
31- echo "WORK_DIRECTORY=$(realpath . )" >> $GITHUB_ENV
54+ echo "WORK_DIRECTORY=$(pwd )" >> $GITHUB_ENV
3255 echo "PEAQ_NETWORK_NODE_BRANCH=${{ github.head_ref }}" >> $GITHUB_ENV
33- echo "PEAQ_BC_TEST_BRANCH=$(realpath .) " >> $GITHUB_ENV
56+ echo "PEAQ_BC_TEST_BRANCH=${{ github.head_ref }} " >> $GITHUB_ENV
3457 echo "PARACHAIN_LAUNCH_BRANCH=${{ github.head_ref }}" >> $GITHUB_ENV
35- echo "RESULT_PATH=(realpath result)" >> $GITHUB_ENV
58+ echo "RESULT_PATH=$ (realpath result)" >> $GITHUB_ENV
3659 cat $GITHUB_ENV
37- mkdir -p result
3860 # echo "FORKED_BINARY_FOLDER=(realpath ../forked-binary)" >> $GITHUB_ENV
3961
4062 - name : Install dependencies bianry
4163 working-directory : ../
64+ shell : bash
4265 run : |
4366 # Install git, default install
44- which git
67+ git --version
4568 # Install docker, default install
46- which docker
69+ docker --version
70+
4771 # Install docker-compose, default install?
48- which docker-compose
49- which docker compose
72+ sudo apt-get update
73+ sudo apt-get install ca-certificates curl
74+ sudo install -m 0755 -d /etc/apt/keyrings
75+ sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
76+ sudo chmod a+r /etc/apt/keyrings/docker.asc
77+
78+ # Add the repository to Apt sources:
79+ echo \
80+ "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
81+ $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
82+ sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
83+ sudo apt-get update
84+ sudo apt-get install docker-compose-plugin
85+
86+ alias docker-compose='docker compose'
87+ docker compose version
88+
5089 # Install nvm
51- curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
90+ # Already installed
91+ export NVM_DIR="$HOME/.nvm"
92+ [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
93+ [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
5294 nvm install v16
95+ nvm use v16
96+
5397 # Install yarn
5498 npm install --global yarn
5599 # Install jq
56100 sudo apt-get install jq
57- # Install try-runtime
58- cargo install --git https://github.com/paritytech/try-runtime-cli --locked
59- # Install subkey
60- cargo install --force subkey --git https://github.com/paritytech/substrate --version 2.0.1 --locked
61-
62- - name : Clone peaq-bc-repo
63- uses : GuillaumeFalourd/clone-github-repo-action@v2.3
64- with :
65- depth : 1
66- branch : main # Should change the branch
67- owner : peaqnetwork
68- repository : peaq-bc-test
69- path-to-clone : ../peaq-bc-test
101+ # # Install try-runtime, in this test, we won't use that
102+ # cargo install --git https://github.com/paritytech/try-runtime-cli --locked
103+ # # Install subkey, in this test, we won't use that
104+ # cargo install --force subkey --git https://github.com/paritytech/substrate --version 2.0.1 --locked
70105
71106 - name : Install dependency on peaq-bc-test
72107 working-directory : ../peaq-bc-test
73108 run : |
74109 python3 -m pip install --upgrade pip
75110 pip install -r requirements.txt
76111
77- - name : Clone parachain-launch
78- uses : GuillaumeFalourd/clone-github-repo-action@v2.3
79- with :
80- branch : dev # Should change the branch
81- owner : peaqnetwork
82- repository : parachain-launch
83- path-to-clone : ../parachain-launch
84-
85112 - name : Install dependency on parachain-launch
86113 working-directory : ../parachain-launch
87114 run : |
88115 git submodule update --init --recursive
89- nvm install 16
90- yarn build
116+ export NVM_DIR="$HOME/.nvm"
117+ [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
118+ [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
119+ nvm use v16
91120 yarn install
121+ yarn build
92122
93123 - name : Install dependency on fork-off-substrate
94124 working-directory : ../parachain-launch/fork-off-substrate
@@ -102,4 +132,5 @@ jobs:
102132 echo "Current DateTime: ${DATETIME}"
103133 export SET_DATETIME=${DATETIME}
104134 # [TODO] Use the docker image to regenerate the docker image...
105- bash new.chain.test.bash --chain peaq --test all
135+ # Need to check several things
136+ bash -x new.chain.test.bash --chain peaq --test all
0 commit comments