Skip to content

add HexFiend template #17

add HexFiend template

add HexFiend template #17

Workflow file for this run

name: Testing
on:
push:
branches:
- master
- development
jobs:
build_dart_packages:
runs-on: ubuntu-latest
strategy:
matrix:
version: ["latest", "dev"]
container:
image: google/dart:${{ matrix.version }}
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: pub get
- name: Analyze
run: dartanalyzer --fatal-infos --fatal-warnings .
- name: Run tests
run: pub run test
package-analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: axel-op/dart-package-analyzer@v3
id: analysis # set an id for the current step
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
# You can then use this id to retrieve the outputs in the next steps.
# The following step shows how to exit the workflow with an error if a score is below 100:
- name: Check scores
run: |
MAINTENANCE_SCORE=${{ steps.analysis.outputs.maintenance }}
HEALTH_SCORE=${{ steps.analysis.outputs.health }}
if (( $(echo "$MAINTENANCE_SCORE < 100" | bc) )) || (( $(echo "$HEALTH_SCORE < 100" | bc) ))
then
echo "Scores are not both equal to 100"
exit 1
fi