Skip to content

Commit 742e0b9

Browse files
authored
ci: upgrade tests workflow.
1 parent df95d77 commit 742e0b9

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/tests.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,20 @@ on:
88

99
jobs:
1010
build:
11-
1211
runs-on: ubuntu-latest
1312

14-
container:
15-
image: google/dart:latest
16-
1713
steps:
18-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v4
15+
- uses: dart-lang/setup-dart@v1
16+
with:
17+
sdk: '2.19' # Last stable Dart 2.x version
1918
- name: Install dependencies
20-
run: pub get
19+
run: dart pub get
2120
- name: Run test with coverage
22-
run: pub run test --coverage coverage
21+
run: dart test --coverage coverage
2322
- name: Generate lcov.info for test coverage
24-
run: pub global activate coverage && pub global run coverage:format_coverage -i coverage/test -o coverage/lcov.info --lcov
23+
run: dart pub global activate coverage && dart pub global run coverage:format_coverage -i coverage/test -o coverage/lcov.info --lcov
2524
- name: upload reports to codecov
2625
run: curl -s https://codecov.io/bash | bash
2726
env:
28-
CODECOV_TOKEN: '${{ secrets.CODECOV_TOKEN }}'
27+
CODECOV_TOKEN: '${{ secrets.CODECOV_TOKEN }}'

0 commit comments

Comments
 (0)