exclude build from pub #33
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
# This workflow uses actions that are not certified by GitHub. | |
# They are provided by a third-party and are governed by | |
# separate terms of service, privacy policy, and support | |
# documentation. | |
name: Build | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- name: Set up Flutter | |
uses: subosito/[email protected] | |
with: | |
channel: stable | |
- name: Install dependencies | |
run: flutter pub get | |
- name: Analyze project source | |
working-directory: ./lib | |
run: flutter analyze | |
- name: Run tests | |
run: flutter test --coverage | |
- name: Send coverage to Coveralls | |
uses: coverallsapp/github-action@v2 |