delete_account #1095
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: connect-test-local.yml | |
on: | |
push: | |
branches: | |
- master | |
- main | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
install: | |
timeout-minutes: 10 | |
runs-on: [testing] | |
steps: | |
- name: Set CI Environment Variable | |
run: echo "CI_ENVIRONMENT=true" >> $GITHUB_ENV | |
- name: Fix permissions | |
continue-on-error: true | |
run: | | |
echo ${{secrets.TESTING_LAPTOP_PASSWORD}} | sudo -S chmod 777 -R ~/runners/${{ runner.name }}/_work/connect/connect | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
- uses: pnpm/action-setup@v2 | |
name: Install pnpm | |
continue-on-error: true | |
id: pnpm-install | |
with: | |
version: 8 | |
run_install: false | |
- name: Setup Infra | |
working-directory: ./infra | |
run: | | |
docker-compose --profile full down | |
rm -rf .infra/target | |
rm -rf .infra/backups | |
rm -rf .infra/config | |
rm -rf .infra/logs | |
rm -rf .infra/ofelia_logs | |
echo ${{secrets.TESTING_LAPTOP_PASSWORD}} | sudo -S ./scripts/clean_start.sh | |
- name: Setup Grafana | |
working-directory: ./grafana | |
run: | | |
echo "GRAFANA_USER_ID=$(id -u):$(id -g)" >> $GITHUB_ENV | |
rm -rf ./grafana-data | |
mkdir -p ./grafana-data | |
echo ${{secrets.TESTING_LAPTOP_PASSWORD}} | sudo -S chmod 777 -R ${{ env.GRAFANA_USER_ID }} ./grafana-data | |
docker-compose down | |
docker-compose up -d --no-deps --force-recreate --remove-orphans | |
env: | |
GRAFANA_USER_ID: ${{ env.GRAFANA_USER_ID }} | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
default: true | |
override: true | |
- name: install packages | |
if: steps.cache-node-modules.outputs.cache-hit != 'true' | |
run: | | |
pnpm install | |
working-directory: ./sdk | |
- name: Wait for Infra | |
continue-on-error: true | |
timeout-minutes: 2 | |
working-directory: ./infra | |
run: | | |
( docker-compose logs --follow & ) | grep -q "database system is ready to accept connections" | |
if [[ "$FAILURE" -eq 1 ]]; then | |
echo "Database init failed. Printing last 20 log entries:" | |
docker-compose logs | tail -n 20 | |
fi | |
- name: Wait for Grafana | |
continue-on-error: true | |
timeout-minutes: 2 | |
working-directory: ./grafana | |
run: | | |
( docker-compose logs --follow & ) | grep -q "Update check succeeded" | |
- name: Prepare db tables | |
run: | | |
cargo run --bin tables_migration | |
- name: run cargo test | |
run: | | |
cargo test-integration | |
cargo run --bin nightly-connect-server & | |
sleep 5 | |
- name: test base local | |
run: | | |
pnpm test:ci | |
working-directory: ./sdk/packages/base | |
- name: test solana local | |
run: | | |
pnpm test:ci | |
working-directory: ./sdk/packages/solana | |
- name: test sui local | |
run: | | |
pnpm test:ci | |
working-directory: ./sdk/packages/sui | |
- name: kill-nightly-connect | |
run: | | |
kill $(pgrep -f 'nightly-connect-server') | |
- name: run connect with db | |
run: | | |
cargo run --bin nightly-connect-server & | |
sleep 5 | |
env: | |
ONLY_RELAY_SERVICE: FALSE | |
- name: test cloud local | |
run: | | |
pnpm test:ci | |
working-directory: ./sdk/packages/cloud | |
- name: test analytics local | |
run: | | |
pnpm test:ci | |
working-directory: ./sdk/packages/analytics | |
- name: Clean target | |
working-directory: ./infra | |
run: | | |
docker-compose --profile down | |
rm -rf .infra/target | |
rm -rf .infra/backups | |
rm -rf .infra/config | |
rm -rf .infra/logs | |
rm -rf .infra/ofelia_logs |