Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lucafluri authored Mar 1, 2021
1 parent 7e3c862 commit bc44edb
Showing 1 changed file with 18 additions and 19 deletions.
37 changes: 18 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,24 @@ on:
- dev

env:
FLUTTER_VERSION: "1.22.1"

FLUTTER_VERSION: "1.22.6"
jobs:
# This workflow contains a single job called "build"
test:
name: Test
runs-on: windows-latest

# Steps represent a sequence of tasks that will be executed as part of the job
tests:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: '13.x'
- uses: subosito/flutter-action@v1.3.2
with:
channel: 'stable' # or: 'dev' or 'beta'

- run: flutter pub get
- run: flutter test
- name: Checkout Repository
uses: actions/checkout@v2
- name: Install Flutter
run: git clone https://github.com/flutter/flutter.git --depth 1 -b $FLUTTER_VERSION _flutter
- name: Add Flutter to Path
run: echo "$GITHUB_WORKSPACE/_flutter/bin" >> $GITHUB_PATH
- name: Install Flutter Dependencies
run: flutter pub get
- name: Flutter Analyze
run: flutter analyze --no-pub
- name: Check Flutter Formatting
run: flutter format lib/** --set-exit-if-changed
- name: Run Flutter Tests
run: flutter test --no-pub

0 comments on commit bc44edb

Please sign in to comment.