From 61f59c70af0ffba1dc6972bd15ffee76e7ece2ca Mon Sep 17 00:00:00 2001 From: Kevin Moore Date: Thu, 12 Nov 2020 17:02:07 -0800 Subject: [PATCH 1/3] Create ci.yml --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..3a0dfcd --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,24 @@ +name: ci + +on: + push: + branches: [ master ] + pull_request: + schedule: + # “At 00:00 (UTC) on Sunday.” + - cron: '0 0 * * 0' + +jobs: + ci: + runs-on: ubuntu-latest + steps: + - uses: cedx/setup-dart@v2 + with: + release-channel: dev + - uses: actions/checkout@v2 + + - run: pub get + + - run: dart format --output=none --set-exit-if-changed . + - run: dart analyze --fatal-warnings --fatal-infos . + - run: dart test -p vm,chrome From 3c4f305ad74ba7105eb0c5effc30ffea14fd6e8b Mon Sep 17 00:00:00 2001 From: Kevin Moore Date: Thu, 12 Nov 2020 17:02:56 -0800 Subject: [PATCH 2/3] remove travis and .test_config --- .test_config | 3 --- .travis.yml | 40 ---------------------------------------- 2 files changed, 43 deletions(-) delete mode 100644 .test_config delete mode 100644 .travis.yml diff --git a/.test_config b/.test_config deleted file mode 100644 index 412fc5c..0000000 --- a/.test_config +++ /dev/null @@ -1,3 +0,0 @@ -{ - "test_package": true -} \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 4e550df..0000000 --- a/.travis.yml +++ /dev/null @@ -1,40 +0,0 @@ -language: dart - -dart: -- dev - -jobs: - include: - - stage: analyze_and_format - name: "Analyze lib/" - os: linux - script: dartanalyzer --fatal-warnings --fatal-infos lib/ - - stage: analyze_and_format - name: "Analyze test/" - os: linux - script: dartanalyzer --enable-experiment=non-nullable --fatal-warnings --fatal-infos test/ - - stage: analyze_and_format - name: "Format" - os: linux - script: dartfmt -n --set-exit-if-changed . - - stage: test - name: "Vm Tests" - os: linux - script: pub run --enable-experiment=non-nullable test -p vm - - stage: test - name: "Web Tests" - os: linux - script: pub run --enable-experiment=non-nullable test -p chrome - -stages: - - analyze_and_format - - test - -# Only building master means that we don't run two builds for each pull request. -branches: - only: [master, null_safety] - -# Incremental pub cache and builds. -cache: - directories: - - $HOME/.pub-cache From 42e2af63930ec6cfb8826306053fc9ffb0228dbf Mon Sep 17 00:00:00 2001 From: Kevin Moore Date: Thu, 12 Nov 2020 17:31:23 -0800 Subject: [PATCH 3/3] Update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3a0dfcd..9dab454 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,5 +20,5 @@ jobs: - run: pub get - run: dart format --output=none --set-exit-if-changed . - - run: dart analyze --fatal-warnings --fatal-infos . + - run: dart analyze --fatal-infos . - run: dart test -p vm,chrome