Skip to content

Run tests

Run tests #24

Workflow file for this run

name: tests
run-name: Run tests
on:
push:
branches:
- master
jobs:
tests:
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Update brew
run: brew update
- name: Install aptos
run: brew install aptos
- name: Start Aptos Local Testnet
run: aptos node run-local-testnet & echo $! > aptos_pid.txt
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Generate GraphQL Client
run: ./gradlew graphqlGenerateClient
shell: bash
- name: Run tests
run: ./gradlew test
- name: Stop Aptos Local Testnet
run: kill $(cat aptos_pid.txt)