8000 add dependabot; run the CI weekly (#203) · dart-archive/file.dart@b768f79 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

Commit b768f79

Browse files
authored
add dependabot; run the CI weekly (#203)
1 parent b2e31cb commit b768f79

File tree

3 files changed

+35
-56
lines changed

3 files changed

+35
-56
lines changed

.github/dependabot.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Dependabot configuration file.
2+
version: 2
3+
4+
updates:
5+
- package-ecosystem: "github-actions"
6+
directory: "/"
7+
schedule:
8+
interval: "monthly"

.github/workflows/file.yml

Lines changed: 27 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,59 @@
11
name: Dart
22

33
on:
4+
schedule:
5+
# “At 00:00 (UTC) on Sunday.”
6+
- cron: '0 0 * * 0'
47
push:
58
branches: [ master ]
69
pull_request:
710
branches: [ master ]
8-
workflow_dispatch:
11+
12+
permissions: read-all
913

1014
jobs:
1115
correctness:
1216
runs-on: ubuntu-latest
1317
strategy:
1418
matrix:
1519
package: [file, file_testing]
20+
1621
steps:
17-
- uses: actions/checkout@v2.3.4
18-
- uses: dart-lang/setup-dart@v1.2
22+
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
23+
- uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d
1924
with:
2025
sdk: dev
26+
2127
- name: Install ${{ matrix.package }} dependencies
22-
run: |
23-
cd packages/${{ matrix.package }}
24-
dart pub upgrade
28+
working-directory: packages/${{ matrix.package }}
29+
run: dart pub get
30+
2531
- name: Verify formatting in ${{ matrix.package }}
26-
run: |
27-
cd packages/${{ matrix.package }}
28-
dart format --output=none --set-exit-if-changed .
32+
working-directory: packages/${{ matrix.package }}
33+
run: dart format --output=none --set-exit-if-changed .
34+
2935
- name: Analyze package ${{ matrix.package }} source
30-
run: |
31-
cd packages/${{ matrix.package }}
32-
dart analyze --fatal-infos
36+
working-directory: packages/${{ matrix.package }}
37+
run: dart analyze --fatal-infos
38+
3339
test:
3440
runs-on: ${{ matrix.os }}
3541
strategy:
3642
matrix:
3743
package: [file]
3844
os: [ubuntu-latest, macos-latest, windows-latest]
3945
sdk: [stable, beta, dev]
46+
4047
steps:
41-
- uses: actions/checkout@v2.3.4
42-
- uses: dart-lang/setup-dart@v1.2
48+
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
49+
- uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d
4350
with:
4451
sdk: ${{ matrix.sdk }}
52+
4553
- name: Install ${{ matrix.package }} dependencies
46-
run: |
47-
cd packages/${{ matrix.package }}
48-
dart pub upgrade
54+
working-directory: packages/${{ matrix.package }}
55+
run: dart pub get
56+
4957
- name: Run ${{ matrix.package }} Tests
50-
run: |
51-
cd packages/${{ matrix.package }}
52-
dart pub run test -j1 -rexpanded
58+
working-directory: packages/${{ matrix.package }}
59+
run: dart pub run test -j1

contrib/c9.sh

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

0 commit comments

Comments
 (0)
0