TestSuite #816
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: TestSuite | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
push: | |
branches: | |
- main | |
pull_request: | |
env: | |
REJECT_SEED: ${{ secrets.REJECT_SEED }} | |
TRON_SEED: ${{ secrets.TRON_SEED }} | |
ETHERSCAN_API_KEYS: ${{ secrets.ETHERSCAN_API_KEYS }} | |
TRONSCAN_API_KEYS: ${{ secrets.TRONSCAN_API_KEYS }} | |
DEV_SEED: ${{ secrets.DEV_SEED }} | |
jobs: | |
lint: | |
name: Static code analysis and run unit tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v1 | |
- run: git submodule update --init --recursive | |
- run: flutter pub get | |
- run: cd packages/bip39 && flutter pub get | |
- run: cd .. | |
- run: cd .. | |
- name: Lint analysis | |
run: flutter analyze | |
- name: ci tests | |
run: dart test test/ci | |
generate-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: subosito/flutter-action@v1 | |
- name: Install dartdoc | |
run: flutter pub global activate dartdoc | |
- name: Generate API docs | |
run: flutter pub global run dartdoc | |
- name: Copy Docs output | |
run: cp -R doc/api docs | |
- name: Deploy to Github Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.ACTION_GITHUB_TOKEN }} | |
publish_dir: ./docs |