Skip to content

Commit

Permalink
Make build run on dev and master pushes (#897)
Browse files Browse the repository at this point in the history
  • Loading branch information
LuisDuarte1 authored Aug 10, 2023
2 parents decfdcc + dc33944 commit d49b169
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/app_version_integrity.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ on: pull_request

jobs:
app_version_integrity:
name: "Check for app version change"
name: "Version integrity"
runs-on: ubuntu-latest
env:
APP_VERSION_PATH: "uni/app_version.txt"
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/format_lint_test.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
on: pull_request
on:
pull_request:
push:
branches: [master, develop]

env:
FLUTTER_VERSION: 3.7.2
JAVA_VERSION: 11.x

jobs:
format:
name: 'Format'
name: "Format"
runs-on: ubuntu-latest
defaults:
run:
Expand All @@ -20,7 +23,7 @@ jobs:
- run: dart format $(find . -type f -name "*.dart" -a -not -name "*.g.dart") --set-exit-if-changed

lint:
name: 'Lint'
name: "Lint"
runs-on: ubuntu-latest
needs: format
defaults:
Expand All @@ -31,7 +34,7 @@ jobs:
- uses: actions/setup-java@v3
with:
java-version: ${{ env.JAVA_VERSION }}
distribution: 'zulu'
distribution: "zulu"
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.FLUTTER_VERSION }}
Expand All @@ -46,7 +49,7 @@ jobs:
- run: flutter analyze .

test:
name: 'Test'
name: "Test"
runs-on: ubuntu-latest
needs: lint
defaults:
Expand All @@ -57,7 +60,7 @@ jobs:
- uses: actions/setup-java@v3
with:
java-version: ${{ env.JAVA_VERSION }}
distribution: 'zulu'
distribution: "zulu"
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.FLUTTER_VERSION }}
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<br>
<br>

[![Build badge](https://img.shields.io/github/actions/workflow/status/NIAEFEUP/uni/format_lint_test.yaml?style=for-the-badge)](https://github.com/NIAEFEUP/uni/actions)
[![Deploy badge](https://img.shields.io/github/actions/workflow/status/NIAEFEUP/uni/deploy.yaml?label=Deploy&style=for-the-badge)](https://github.com/NIAEFEUP/uni/actions)
[![Build badge](https://img.shields.io/github/actions/workflow/status/NIAEFEUP/uni/format_lint_test.yaml?style=for-the-badge&branch=develop)](https://github.com/NIAEFEUP/uni/actions)
[![Deploy badge](https://img.shields.io/github/actions/workflow/status/NIAEFEUP/uni/deploy.yaml?label=Deploy&style=for-the-badge&branch=develop)](https://github.com/NIAEFEUP/uni/actions)

[![style: very good analysis](https://img.shields.io/badge/style-very_good_analysis-B22C89.svg?style=for-the-badge)](https://pub.dev/packages/very_good_analysis)
[![License badge](https://img.shields.io/github/license/NIAEFEUP/uni?style=for-the-badge)](https://github.com/NIAEFEUP/uni/blob/develop/LICENSE)
Expand Down

0 comments on commit d49b169

Please sign in to comment.