-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (42 loc) · 1.26 KB
/
http_sfv.yaml
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
name: http_sfv
on:
pull_request:
paths:
- ".github/workflows/http_sfv.yaml"
- "packages/http_sfv/**"
# Prevent duplicate runs due to Graphite
# https://graphite.dev/docs/troubleshooting#why-are-my-actions-running-twice
concurrency:
group: ${{ github.repository }}-${{ github.workflow }}-${{ github.ref }}-${{ github.ref == 'refs/heads/main' && github.sha || ''}}
cancel-in-progress: true
jobs:
check:
strategy:
fail-fast: true
matrix:
sdk:
- stable
- "3.3"
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Git Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # 4.1.7
with:
submodules: recursive
- name: Setup Dart
uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 # 1.6.5
with:
sdk: ${{ matrix.sdk }}
- name: Get Packages
working-directory: packages/http_sfv
run: dart pub get
- name: Analyze
working-directory: packages/http_sfv
run: dart analyze
- name: Format
working-directory: packages/http_sfv
run: dart format --set-exit-if-changed .
- name: Test
working-directory: packages/http_sfv
run: dart test