-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (61 loc) · 2.02 KB
/
Copy pathci.yml
File metadata and controls
76 lines (61 loc) · 2.02 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
name: CI
on: [push, pull_request, workflow_dispatch]
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
sdk: ['3.11']
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: "latest"
check-latest: true
- name: Set up Dart SDK
uses: dart-lang/setup-dart@v1
with:
sdk: ${{ matrix.sdk }}
- name: Install lcov (macOS)
if: matrix.os == 'macos-latest'
run: brew install lcov
- name: Install lcov (Windows)
if: matrix.os == 'windows-latest'
run: |
choco install lcov
echo "C:\ProgramData\chocolatey\lib\lcov\tools\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Install lcov (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get update && sudo apt-get install -y lcov
- name: Setup Xvfb
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update && sudo apt-get install -y xvfb
Xvfb :99 -screen 0 1920x1080x24 &
export DISPLAY=:99
- name: Test without coverage report
if: matrix.os != 'ubuntu-latest'
run: make tests
- name: Test and generate coverage report
if: matrix.os == 'ubuntu-latest'
env:
DISPLAY: :99
run: make tests_with_coverage_report
- name: Upload coverage to Coveralls
if: matrix.os == 'ubuntu-latest'
uses: coverallsapp/github-action@v2
format-markdown:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Format Markdown with markdownlint
run: |
npm install -g markdownlint-cli
markdownlint --disable MD013 MD033 --fix . --ignore CODE_OF_CONDUCT.md --ignore CHANGELOG.md
git add -A
git diff --cached --exit-code