Upgrade dependency for visibility_detector #9
Workflow file for this run
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
# Those are publisher names. | |
# cSpell:ignore Vignal subosito | |
name: Tests | |
on: [pull_request] | |
jobs: | |
packages: | |
runs-on: ubuntu-latest | |
# Lists the modified packages in the PR. | |
outputs: | |
package: ${{ steps.changes.outputs.packages }} | |
steps: | |
# Make sure we have some code to diff. | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 # To retrieve the full git history. | |
- name: Get changed files | |
id: changes | |
# Set outputs using the command. | |
# cSpell:ignore ACMRT | |
run: | | |
packages=$(( | |
echo '{ "package" : [' | |
git diff --name-only --diff-filter=ACMRT ${{ github.event.pull_request.base.sha }} ${{ github.sha }} | grep ^packages | cut -d/ -f 1-2| uniq | sed 's/^\(.*\)$/\\"\1\\",/' | xargs | sed 's/,$//g' | |
echo ']}' | |
) | jq -c .) | |
echo "::set-output name=packages::$packages" | |
- name: echo modified packages | |
run: | | |
echo ${{ steps.changes.outputs.packages }} | |
test: | |
runs-on: macos-latest | |
name: Dart linter and tests | |
needs: packages | |
strategy: | |
fail-fast: false | |
matrix: ${{ fromJson(needs.packages.outputs.package) }} | |
defaults: | |
run: | |
working-directory: ${{ matrix.package }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Flutter | |
uses: subosito/flutter-action@v2 | |
- run: flutter pub get | |
- name: Analyze dart code | |
uses: ValentinVignal/[email protected] | |
- name: Run tests | |
run: flutter test --coverage | |
- name: Upload to Codecov | |
uses: codecov/codecov-action@v2 | |
spelling: | |
# Verifies there is no spelling errors in the code. | |
runs-on: ubuntu-latest | |
name: Check code spelling | |
needs: packages | |
strategy: | |
fail-fast: false | |
matrix: ${{ fromJson(needs.packages.outputs.package) }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Check spelling | |
uses: streetsidesoftware/cspell-action@v2 | |
with: | |
root: ${{ matrix.package }} |