4242 steps :
4343 - name : Wait for the service to be ready
4444 run : |
45- echo "Waiting for 60 seconds..."
46- sleep 60
45+ echo "Waiting for 10 seconds for nctl to boot and creat accounts ..."
46+ sleep 10
4747
4848 - name : List files in the users directory
4949 run : |
@@ -53,14 +53,14 @@ jobs:
5353 - name : List files in user-1 directory
5454 run : |
5555 echo "Listing files in ./assets/users/user-1/:"
56- ls -la ./assets/users/
56+ ls -la ./assets/users/user-1/
5757
58- # WARNING: These accounts, and their private keys, are publicly known.
58+ # WARNING: These accounts, and their private keys, are now publicly known.
5959 # Any funds sent to them on Mainnet or any other live network WILL BE LOST.
6060 - name : Set SECRET_KEY_USER_1 and SECRET_KEY_USER_2 environment variables
6161 run : |
62- echo "SECRET_KEY_USER_1=$(cat ./assets/users/user-1/secret_key.pem)" >> $GITHUB_ENV
63- echo "SECRET_KEY_USER_2=$(cat ./assets/users/user-2/secret_key.pem)" >> $GITHUB_ENV
62+ echo "SECRET_KEY_USER_1=$(sed -n '2p' ./assets/users/user-1/secret_key.pem)" >> $GITHUB_ENV
63+ echo "SECRET_KEY_USER_2=$(sed -n '2p' ./assets/users/user-2/secret_key.pem)" >> $GITHUB_ENV
6464
6565 - name : Print GITHUB_ENV
6666 run : |
@@ -72,46 +72,46 @@ jobs:
7272 sudo chown -R $USER:$USER ./assets/users
7373 sudo chmod -R 755 ./assets/users
7474
75- # - uses: actions/checkout@v2
76- # - uses: actions-rs/toolchain@v1
77- # with:
78- # toolchain: stable
79- # profile: minimal
80- # components: rustfmt, clippy
81- # target: wasm32-unknown-unknown
82-
83- # - name: Fmt
84- # uses: actions-rs/cargo@v1
85- # with:
86- # command: fmt
87- # args: -- --check
88-
89- # - name: Audit
90- # uses: actions-rs/cargo@v1
91- # with:
92- # command: audit
93- # args: --deny warnings
94-
95- # - name: Lint
96- # run: make check-lint
97-
98- # - name: Use Node.js ${{ matrix.node-version }}
99- # uses: actions/setup-node@5b949b50c3461bbcd5a540b150c368278160234a #v3.4.0
100- # with:
101- # node-version: ${{ matrix.node-version }}
102- # registry-url: 'https://registry.npmjs.org'
103-
104- # - name: Casper node launcher js
105- # run: npx casper-node-launcher-js node --daemon
106-
107- # - name: Unit Tests
108- # run: make test
109-
110- # - name: Integration Tests
111- # run: make integration-test
112-
113- # - name: E2E Tests
114- # run: make e2e-test
75+ - uses : actions/checkout@v2
76+ - uses : actions-rs/toolchain@v1
77+ with :
78+ toolchain : stable
79+ profile : minimal
80+ components : rustfmt, clippy
81+ target : wasm32-unknown-unknown
82+
83+ - name : Fmt
84+ uses : actions-rs/cargo@v1
85+ with :
86+ command : fmt
87+ args : -- --check
88+
89+ - name : Audit
90+ uses : actions-rs/cargo@v1
91+ with :
92+ command : audit
93+ args : --deny warnings
94+
95+ - name : Lint
96+ run : make check-lint
97+
98+ - name : Use Node.js ${{ matrix.node-version }}
99+ uses : actions/setup-node@5b949b50c3461bbcd5a540b150c368278160234a # v3.4.0
100+ with :
101+ node-version : ${{ matrix.node-version }}
102+ registry-url : ' https://registry.npmjs.org'
103+
104+ - name : Casper node launcher js
105+ run : npx casper-node-launcher-js node --daemon
106+
107+ - name : Unit Tests
108+ run : make test
109+
110+ - name : Integration Tests
111+ run : make integration-test
112+
113+ - name : E2E Tests
114+ run : make e2e-test
115115
116116 - name : Build lib for all targets
117117 uses : actions-rs/cargo@v1
0 commit comments