Skip to content

Commit a801bc4

Browse files
authored
Move from Travis-CI to GitHub Actions (#491)
1 parent 0de6a59 commit a801bc4

File tree

8 files changed

+121
-67
lines changed

8 files changed

+121
-67
lines changed

.github/workflows/dart.yml

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
# Created with package:mono_repo v3.1.0-beta.3
2+
name: Dart CI
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- master
8+
pull_request:
9+
schedule:
10+
- cron: "0 0 * * 0"
11+
defaults:
12+
run:
13+
shell: bash
14+
env:
15+
PUB_ENVIRONMENT: bot.github
16+
17+
jobs:
18+
job_001:
19+
name: mono_repo self validate
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: cedx/setup-dart@v2
23+
with:
24+
release-channel: stable
25+
version: latest
26+
- run: dart --version
27+
- uses: actions/checkout@v2
28+
- run: pub global activate mono_repo 3.1.0-beta.3
29+
- run: pub global run mono_repo generate --validate
30+
job_002:
31+
name: "OS: linux; SDK: dev; PKGS: _test_annotations, example, example_usage, source_gen; TASKS: [`dartfmt -n --set-exit-if-changed .`, `dartanalyzer --fatal-infos --fatal-warnings .`]"
32+
runs-on: ubuntu-latest
33+
steps:
34+
- uses: cedx/setup-dart@v2
35+
with:
36+
release-channel: dev
37+
- run: dart --version
38+
- uses: actions/checkout@v2
39+
- env:
40+
PKGS: _test_annotations example example_usage source_gen
41+
TRAVIS_OS_NAME: linux
42+
run: tool/ci.sh dartfmt dartanalyzer_0
43+
job_003:
44+
name: "OS: linux; SDK: 2.10.0; PKGS: _test_annotations, example, example_usage, source_gen; TASKS: `dartanalyzer --fatal-warnings .`"
45+
runs-on: ubuntu-latest
46+
steps:
47+
- uses: cedx/setup-dart@v2
48+
with:
49+
release-channel: stable
50+
version: "2.10.0"
51+
- run: dart --version
52+
- uses: actions/checkout@v2
53+
- env:
54+
PKGS: _test_annotations example example_usage source_gen
55+
TRAVIS_OS_NAME: linux
56+
run: tool/ci.sh dartanalyzer_1
57+
job_004:
58+
name: "OS: linux; SDK: dev; PKG: example_usage; TASKS: `pub run test --run-skipped`"
59+
runs-on: ubuntu-latest
60+
steps:
61+
- uses: cedx/setup-dart@v2
62+
with:
63+
release-channel: dev
64+
- run: dart --version
65+
- uses: actions/checkout@v2
66+
- env:
67+
PKGS: example_usage
68+
TRAVIS_OS_NAME: linux
69+
run: tool/ci.sh test_0
70+
job_005:
71+
name: "OS: linux; SDK: 2.10.0; PKG: example_usage; TASKS: `pub run test --run-skipped`"
72+
runs-on: ubuntu-latest
73+
steps:
74+
- uses: cedx/setup-dart@v2
75+
with:
76+
release-channel: stable
77+
version: "2.10.0"
78+
- run: dart --version
79+
- uses: actions/checkout@v2
80+
- env:
81+
PKGS: example_usage
82+
TRAVIS_OS_NAME: linux
83+
run: tool/ci.sh test_0
84+
job_006:
85+
name: "OS: linux; SDK: 2.10.0; PKG: source_gen; TASKS: `pub run test`"
86+
runs-on: ubuntu-latest
87+
steps:
88+
- uses: cedx/setup-dart@v2
89+
with:
90+
release-channel: stable
91+
version: "2.10.0"
92+
- run: dart --version
93+
- uses: actions/checkout@v2
94+
- env:
95+
PKGS: source_gen
96+
TRAVIS_OS_NAME: linux
97+
run: tool/ci.sh test_1
98+
job_007:
99+
name: "OS: linux; SDK: dev; PKG: source_gen; TASKS: `pub run test`"
100+
runs-on: ubuntu-latest
101+
steps:
102+
- uses: cedx/setup-dart@v2
103+
with:
104+
release-channel: dev
105+
- run: dart --version
106+
- uses: actions/checkout@v2
107+
- env:
108+
PKGS: source_gen
109+
TRAVIS_OS_NAME: linux
110+
run: tool/ci.sh test_1

.travis.yml

Lines changed: 0 additions & 61 deletions
This file was deleted.

_test_annotations/mono_pkg.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# See https://github.com/dart-lang/mono_repo for details
1+
# See https://github.com/google/mono_repo.dart for details
22
stages:
33
- analyze_format:
44
- group:

example/mono_pkg.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# See https://github.com/dart-lang/mono_repo for details
1+
# See https://github.com/google/mono_repo.dart for details
22
stages:
33
- analyze_format:
44
- group:

example_usage/mono_pkg.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# See https://github.com/dart-lang/mono_repo for details
1+
# See https://github.com/google/mono_repo.dart for details
22
dart:
33
- dev
44
- 2.10.0

mono_repo.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
# See https://github.com/dart-lang/mono_repo for details
1+
# See with https://github.com/google/mono_repo.dart for details on this file
22
self_validate: true
3+
4+
github:
5+
# Setting just `cron` keeps the defaults for `push` and `pull_request`
6+
cron: '0 0 * * 0' # “At 00:00 (UTC) on Sunday.”
7+
38
merge_stages:
49
- analyze_format

source_gen/mono_pkg.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# See https://github.com/dart-lang/mono_repo for details
1+
# See https://github.com/google/mono_repo.dart for details
22
dart:
33
- 2.10.0
44
- dev

tool/travis.sh renamed to tool/ci.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# Created with package:mono_repo v3.0.0
2+
# Created with package:mono_repo v3.1.0-beta.3
33

44
# Support built in commands on windows out of the box.
55
function pub() {

0 commit comments

Comments
 (0)