chore(deps): bump @vegaprotocol/rest-clients from 0.0.6 to 0.77.1 #1669
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
name: 'Check Requests Compatible With Vega Envs' | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
generate-requests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Node.js Latest | |
uses: actions/setup-node@v3 | |
with: | |
cache: 'yarn' | |
node-version-file: '.nvmrc' | |
- name: Install dependencies | |
run: yarn install | |
- name: Generate requests | |
run: yarn test:requests | |
id: generate-requests | |
- name: Archive request files | |
uses: actions/upload-artifact@v2 | |
with: | |
name: request-files | |
path: request-files | |
test-requests: | |
needs: generate-requests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
configFile: ['$(pwd)/config/beta.js', ''] # Add '$(pwd)/config/mainnet.js' when mainnet has the check-tx functionality. | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Node.js Latest | |
uses: actions/setup-node@v3 | |
with: | |
cache: 'yarn' | |
node-version-file: '.nvmrc' | |
- name: Download request files | |
uses: actions/download-artifact@v2 | |
with: | |
name: request-files | |
path: request-files | |
- name: Set envVersion | |
run: | | |
if [[ "${{ matrix.configFile }}" == "" ]]; then | |
echo "VERSION=58508f6e" >> $GITHUB_ENV | |
else | |
envVersion=$(node ./.github/scripts/deployment/get-healthy-node-or-version.js ${{ matrix.configFile }} get-version) | |
echo "VERSION=$envVersion" >> $GITHUB_ENV | |
fi | |
- name: ${{ matrix.configFile }}-check requests compatible | |
run: | | |
envVersion=$VERSION | |
echo "-------- configuration ${{ matrix.configFile }} is running on vega $envVersion --------" | |
docker pull ghcr.io/vegaprotocol/vega/vega:$envVersion | |
docker run --rm -v $(pwd)/request-files:/txdir ghcr.io/vegaprotocol/vega/vega:$envVersion tools check-tx --txdir=/txdir |