stop container with exit and retry every minute #41
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 | |
'on': | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
analyze-and-test-without-env: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: dart-lang/[email protected] | |
- name: Install dependencies | |
run: dart pub get | |
- name: Analyze project source | |
run: dart analyze | |
- name: Run tests | |
run: dart test test/app_test_no_env.dart | |
test-with-env-protected: | |
runs-on: ubuntu-latest | |
env: | |
PRICE_LOG_LEVEL: info | |
HTTP_LOG_LEVEL: info | |
HTTP_PORT: 3001 | |
RATING_MARGIN: 10 | |
PROTECTED_MODE: true | |
RAPID_API_SECRET: ${{ secrets.RAPID_API_SECRET }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: dart-lang/[email protected] | |
- name: Install dependencies | |
run: dart pub get | |
- name: Run tests | |
run: dart test test/app_test_with_env.dart | |
test-with-env-unprotected: | |
runs-on: ubuntu-latest | |
env: | |
PRICE_LOG_LEVEL: info | |
HTTP_LOG_LEVEL: info | |
HTTP_PORT: 3001 | |
RATING_MARGIN: 10 | |
PROTECTED_MODE: false | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: dart-lang/[email protected] | |
- name: Install dependencies | |
run: dart pub get | |
- name: Run tests | |
run: dart test test/app_test_with_env.dart |