Run tests #24
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: 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) |