generated from actions/javascript-action
-
Notifications
You must be signed in to change notification settings - Fork 19
63 lines (58 loc) · 1.53 KB
/
test.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: 'ci'
on:
pull_request:
push:
branches:
- main
- 'releases/*'
jobs:
semantic-pull-request:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/semantic_pull_request.yml@v1
styling:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Format
run: npm run check_format
unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: npm ci
- name: Test
run: npm test
e2e:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Test (100% requirement on 100% file)
uses: ./
with:
path: './fixtures/lcov.100.info'
- name: Test (90% requirement on 95% file)
uses: ./
with:
path: './fixtures/lcov.95.info'
min_coverage: 90
- name: Test (100% requirement on 95% file)
uses: ./
with:
path: './fixtures/lcov.95.info'
exclude: '**/*_observer.dart'
- name: Test (100% requirement on 95% file with excludes)
uses: ./
with:
path: './fixtures/lcov.95.info'
exclude: '**/whatever.dart **/*_observer.dart **/does_not_matter.dart'
spell-check:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/spell_check.yml@v1
with:
includes: |
**/*.md
.*/**/*.md
modified_files_only: false