fix: blockchain providers #1
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
name: Monitoring CI | |
permissions: | |
id-token: write | |
contents: read | |
on: | |
push: | |
paths: | |
- packages/monitoring/** | |
- .github/workflows/monitoring-tests.yml | |
jobs: | |
monitoring-tests: | |
strategy: | |
matrix: | |
config: [main-config.json, less-important-config.json] | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
defaults: | |
run: | |
working-directory: packages/monitoring | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup monorepo access | |
uses: redstone-finance/ssh-agent@v0.8.1 | |
with: | |
ssh-private-key: ${{ secrets.MONOREPO_PRIVATE_KEY }} | |
- name: "Setup Node.js" | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.15 | |
- name: Install modules | |
run: yarn install | |
- name: Compile code | |
run: yarn compile && yarn build | |
- name: Lint | |
run: yarn lint | |
- name: Run unit tests | |
run: yarn unit-test | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v3 | |
with: | |
role-to-assume: arn:aws:iam::731675056359:role/dev-redstone-monorepo-public-role | |
aws-region: eu-west-1 | |
- name: Set ENV | |
run: | | |
echo "RPC_1=$(aws ssm get-parameter --name "/dev/rpc/1/urls" --with-decryption --query "Parameter.Value" --output text --region eu-west-1)" >> "$GITHUB_ENV" | |
echo "RPC_5=$(aws ssm get-parameter --name "/dev/rpc/5/urls" --with-decryption --query "Parameter.Value" --output text --region eu-west-1)" >> "$GITHUB_ENV" | |
echo "RPC_56=$(aws ssm get-parameter --name "/dev/rpc/56/urls" --with-decryption --query "Parameter.Value" --output text --region eu-west-1)" >> "$GITHUB_ENV" | |
echo "RPC_42161=$(aws ssm get-parameter --name "/dev/rpc/42161/urls" --with-decryption --query "Parameter.Value" --output text --region eu-west-1)" >> "$GITHUB_ENV" | |
echo "RPC_43114=$(aws ssm get-parameter --name "/dev/rpc/43114/urls" --with-decryption --query "Parameter.Value" --output text --region eu-west-1)" >> "$GITHUB_ENV" | |
echo "RPC_5000=$(aws ssm get-parameter --name "/dev/rpc/5000/urls" --with-decryption --query "Parameter.Value" --output text --region eu-west-1)" >> "$GITHUB_ENV" | |
echo "RPC_97=$(aws ssm get-parameter --name "/dev/rpc/97/urls" --with-decryption --query "Parameter.Value" --output text --region eu-west-1)" >> "$GITHUB_ENV" | |
echo "RPC_424242=$(aws ssm get-parameter --name "/dev/rpc/424242/urls" --with-decryption --query "Parameter.Value" --output text --region eu-west-1)" >> "$GITHUB_ENV" | |
echo "RPC_2222=$(aws ssm get-parameter --name "/dev/rpc/2222/urls" --with-decryption --query "Parameter.Value" --output text --region eu-west-1)" >> "$GITHUB_ENV" | |
echo "RPC_63230=$(aws ssm get-parameter --name "/dev/rpc/63230/urls" --with-decryption --query "Parameter.Value" --output text --region eu-west-1)" >> "$GITHUB_ENV" | |
echo "RPC_11155111=$(aws ssm get-parameter --name "/dev/rpc/11155111/urls" --with-decryption --query "Parameter.Value" --output text --region eu-west-1)" >> "$GITHUB_ENV" | |
echo "RPC_7700=$(aws ssm get-parameter --name "/dev/rpc/7700/urls" --with-decryption --query "Parameter.Value" --output text --region eu-west-1)" >> "$GITHUB_ENV" | |
echo "ORACLE_GATEWAY_API_KEY=$(aws ssm get-parameter --name "/prod/oracle-gateways/api-key-for-access-to-admin-routes" --with-decryption --query "Parameter.Value" --output text --region eu-west-1)" >> "$GITHUB_ENV" | |
echo "ORACLE_GATEWAY_DEMO_API_KEY=$(aws ssm get-parameter --name "/dev/oracle-gateways/api-key-for-access-to-admin-routes" --with-decryption --query "Parameter.Value" --output text --region eu-west-1)" >> "$GITHUB_ENV" | |
- name: Run main monitoring | |
run: yarn test | |
env: | |
CONFIG_PATH: ${{ matrix.config }} |