-
Notifications
You must be signed in to change notification settings - Fork 25
48 lines (42 loc) · 1.33 KB
/
base.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Base
on: [push, pull_request]
jobs:
base:
strategy:
fail-fast: false
max-parallel: 1
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
sdk: [3.0, 3.1, 3.2, 3.3, 3.4, stable]
exclude:
- os: windows-latest
sdk: 3.4
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: ./base
steps:
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1
with:
sdk: ${{ matrix.sdk }}
- name: Install dependencies
run: dart pub get
- name: Format check
run: dart format --output=none --set-exit-if-changed .
- name: Analyze project source
run: dart analyze --fatal-warnings --fatal-infos
- name: Run tests
run: |
set -e
./coverage.sh
bash <(curl -s https://codecov.io/bash)
shell: bash
env:
QINIU_DART_SDK_ACCESS_KEY: ${{ secrets.QINIU_DART_SDK_ACCESS_KEY }}
QINIU_DART_SDK_SECRET_KEY: ${{ secrets.QINIU_DART_SDK_SECRET_KEY }}
QINIU_DART_SDK_TOKEN_SCOPE: ${{ secrets.QINIU_DART_SDK_TOKEN_SCOPE }}