Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate CI to GitHub Actions #240

Merged
merged 9 commits into from
Jan 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
94 changes: 94 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
name: Continuous integration

on: [push]

jobs:
floor-annotation:
runs-on: ubuntu-latest
timeout-minutes: 10

container:
image: google/dart:latest

steps:
- name: Check out code
uses: actions/checkout@v2

- name: Install dependencies
working-directory: floor_annotation
run: pub get

- name: Analyze
working-directory: floor_annotation
run: dartanalyzer --fatal-infos --fatal-warnings .

- name: Format
working-directory: floor_annotation
run: dartfmt -n --set-exit-if-changed .

floor-generator:
runs-on: ubuntu-latest
timeout-minutes: 10

container:
image: google/dart:latest

steps:
- name: Check out code
uses: actions/checkout@v2

- name: Install dependencies
working-directory: floor_generator
run: pub get

- name: Analyze
working-directory: floor_generator
run: dartanalyzer --fatal-infos --fatal-warnings .

- name: Format
working-directory: floor_generator
run: dartfmt -n --set-exit-if-changed .

- name: Run tests
if:
working-directory: floor_generator
run: pub run test_cov

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: floor_generator
file: ./floor_generator/coverage/lcov.info

floor:
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- name: Check out code
uses: actions/checkout@v2

- name: Install Flutter
uses: subosito/flutter-action@v1
with:
channel: stable

- name: Install dependencies
run: flutter packages get
working-directory: floor

- name: Analyze
run: flutter analyze
working-directory: floor

- name: Run tests
run: flutter test --coverage --coverage-path coverage/lcov.info
working-directory: floor

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: floor
file: ./floor/coverage/lcov.info
87 changes: 0 additions & 87 deletions .travis.yml

This file was deleted.

67 changes: 0 additions & 67 deletions tool/travis.sh

This file was deleted.