Skip to content

Commit

Permalink
Merge pull request #3 from namib-project/github-actions
Browse files Browse the repository at this point in the history
ci: improve GitHub Actions configuration
  • Loading branch information
JKRhb authored May 20, 2024
2 parents 052fb3e + a53540f commit f57b0bf
Showing 1 changed file with 23 additions and 8 deletions.
31 changes: 23 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,32 @@ on:
branches: [ main ]
pull_request:
branches: [ main ]
merge_group:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest
name: build (${{ matrix.os }})
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
# TODO: Remove once https://github.com/dart-lang/sdk/issues/55745
# has been resolved
sdk: [stable, 3.3.0]
exclude:
- os: macos-latest
sdk: 3.3.0
- os: ubuntu-latest
sdk: 3.3.0
- os: windows-latest
sdk: stable
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: dart-lang/setup-dart@v1
with:
sdk: ${{ matrix.sdk }}

- name: Install dependencies
run: dart pub get
Expand All @@ -24,14 +42,11 @@ jobs:
run: dart analyze

- name: Run tests with coverage
run: dart test --coverage="coverage"

- name: Convert coverage to ICOV
run: dart run coverage:format_coverage --lcov --in=coverage --out=coverage.lcov --report-on=lib
run: dart run coverage:test_with_coverage

- uses: codecov/codecov-action@v2
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: coverage.lcov
file: coverage/lcov.info
name: Upload to codecov.io
verbose: true

0 comments on commit f57b0bf

Please sign in to comment.