Jonatas

change folder to build tests

1 #The name of your workflow. 1 #The name of your workflow.
2 name: build 2 name: build
3 # Trigger the workflow on push or pull request 3 # Trigger the workflow on push or pull request
4 -on: [push,pull_request] 4 +on:
  5 + push:
  6 + paths:
  7 + - "getx/**"
  8 + - ".github/workflows/main.yaml"
  9 +
  10 + pull_request:
  11 + paths:
  12 + - "getx/**"
  13 + - ".github/workflows/main.yaml"
5 #A workflow run is made up of one or more jobs. Jobs run in parallel by default. 14 #A workflow run is made up of one or more jobs. Jobs run in parallel by default.
6 jobs: 15 jobs:
7 16
  1 +#The name of your workflow.
  2 +name: build
  3 +# Trigger the workflow on push or pull request
  4 +on:
  5 + push:
  6 + paths:
  7 + - "packages/get_core/**"
  8 + - ".github/workflows/packages.yaml"
  9 +
  10 + pull_request:
  11 + paths:
  12 + - "packages/get_core/**"
  13 + - ".github/workflows/packages.yaml"
  14 +#A workflow run is made up of one or more jobs. Jobs run in parallel by default.
  15 +jobs:
  16 +
  17 + test:
  18 + #The type of machine to run the job on. [windows,macos, ubuntu , self-hosted]
  19 + runs-on: macos-latest
  20 + #sequence of tasks called
  21 + steps:
  22 + # The branch or tag ref that triggered the workflow will be checked out.
  23 + # https://github.com/actions/checkout
  24 + - uses: actions/checkout@v1
  25 + # Setup a flutter environment.
  26 + # https://github.com/marketplace/actions/flutter-action
  27 + - uses: subosito/flutter-action@v1
  28 + with:
  29 + flutter-version: '1.20.4'
  30 + channel: 'stable'
  31 + - run: flutter pub get
  32 + #- run: flutter analyze
  33 + # run flutter widgets tests and unit tests
  34 + - run: flutter test --coverage
  35 + # Upload coverage reports to Codecov
  36 + # https://github.com/marketplace/actions/codecov
  37 + - uses: codecov/codecov-action@v1.0.7
  38 +