Skip to content

Commit

Permalink
bug fixes for GitHub Action Implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
nhathiwala committed Mar 10, 2021
1 parent 97f78ae commit e0c3db2
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,16 @@ jobs:
# Note: This workflow uses the latest stable version of the Dart SDK.
# You can specify other versions if desired, see documentation here:
# https://github.com/dart-lang/setup-dart/blob/main/README.md
# - uses: dart-lang/setup-dart@v1
- uses: dart-lang/setup-dart@v1
# - uses: dart-lang/setup-dart@9a04e6d73cca37bd455e0608d7e5092f881fd603

- name: Install dependencies
uses: dart-lang/setup-dart@v1
env:
ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
run: dart pub get

- name: Activate dotenv
uses: dart-lang/setup-dart@v1
env:
ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
Expand All @@ -43,15 +41,13 @@ jobs:

# Uncomment this step to verify the use of 'dart format' on each commit.
- name: Verify formatting
uses: dart-lang/setup-dart@v1
env:
ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
run: dart format --output=none --set-exit-if-changed .

# Consider passing '--fatal-infos' for slightly stricter analysis.
- name: Analyze project source
uses: dart-lang/setup-dart@v1
env:
ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
Expand All @@ -61,15 +57,13 @@ jobs:
# package:test for this step to succeed. Note that Flutter projects will
# want to change this to 'flutter test'.
- name: Run tests
uses: dart-lang/setup-dart@v1
env:
ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
run: dart test


- name: Setup credentials
uses: dart-lang/setup-dart@v1
run: |
mkdir -p ~/.pub-cache
cat <<EOF > ~/.pub-cache/credentials.json
Expand All @@ -82,5 +76,4 @@ jobs:
}
EOF
- name: Publish package
uses: dart-lang/setup-dart@v1
run: pub publish -f

0 comments on commit e0c3db2

Please sign in to comment.