difftreelog
disable checkout to an old branch for old tests
in: master
1 file changed
.github/workflows/node-only-update_v2.ymldiffbeforeafterboth156 exit 0156 exit 0157 shell: bash157 shell: bash158159 - name: Checkout at '${{ matrix.mainnet_branch }}' branch160 uses: actions/checkout@master161 with:162 ref: ${{ matrix.mainnet_branch }} #Checking out head commit163 path: ${{ matrix.mainnet_branch }}164165158166 - name: Run tests before Node Parachain upgrade159 - name: Run tests before Node Parachain upgrade167 working-directory: ${{ matrix.mainnet_branch }}/tests160 working-directory: tests168 run: |161 run: |169 yarn install162 yarn install170 yarn add mochawesome163 yarn add mochawesome171 echo "Ready to start tests"164 echo "Ready to start tests"172 yarn polkadot-types165 yarn polkadot-types173 NOW=$(date +%s) && yarn test --reporter mochawesome --reporter-options reportFilename=test-${NOW}166 NOW=$(date +%s) && yarn test --reporter mochawesome --reporter-options reportFilename=test-before-${NOW}174 env:167 env:175 RPC_URL: http://127.0.0.1:9933/168 RPC_URL: http://127.0.0.1:9933/176169180 if: success() || failure() # run this step even if previous step failed173 if: success() || failure() # run this step even if previous step failed181 with:174 with:182 name: Tests before node upgrade ${{ matrix.network }} # Name of the check run which will be created175 name: Tests before node upgrade ${{ matrix.network }} # Name of the check run which will be created183 path: ${{ matrix.mainnet_branch }}/tests/mochawesome-report/test-*.json # Path to test results176 path: tests/mochawesome-report/test-before-*.json # Path to test results184 reporter: mochawesome-json177 reporter: mochawesome-json185 fail-on-error: 'false'178 fail-on-error: 'false'186179241234242 - name: Run tests after Node Parachain upgrade235 - name: Run tests after Node Parachain upgrade243 working-directory: tests236 working-directory: tests244 run: |237 run: |245 yarn install238 yarn install246 yarn add mochawesome239 yarn add mochawesome247 node scripts/readyness.js240 node scripts/readyness.js248 echo "Ready to start tests"241 echo "Ready to start tests"249 yarn polkadot-types242 yarn polkadot-types250 NOW=$(date +%s) && yarn test --reporter mochawesome --reporter-options reportFilename=test-${NOW}243 NOW=$(date +%s) && yarn test --reporter mochawesome --reporter-options reportFilename=test-after-${NOW}251 env:244 env:252 RPC_URL: http://127.0.0.1:9933/245 RPC_URL: http://127.0.0.1:9933/253246257 if: success() || failure() # run this step even if previous step failed250 if: success() || failure() # run this step even if previous step failed258 with:251 with:259 name: Tests after node upgrade ${{ matrix.network }} # Name of the check run which will be created252 name: Tests after node upgrade ${{ matrix.network }} # Name of the check run which will be created260 path: tests/mochawesome-report/test-*.json # Path to test results253 path: tests/mochawesome-report/test-after-*.json # Path to test results261 reporter: mochawesome-json254 reporter: mochawesome-json262 fail-on-error: 'false'255 fail-on-error: 'false'263256