[ffigen][swift2objc] Some small fixes #215
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: swift2objc | |
on: | |
# Run on PRs and pushes to the default branch. | |
push: | |
branches: [main, stable] | |
paths: | |
- '.github/workflows/swift2objc.yaml' | |
- 'pkgs/swift2objc/**' | |
pull_request: | |
branches: [main, stable] | |
paths: | |
- '.github/workflows/swift2objc.yaml' | |
- 'pkgs/swift2objc/**' | |
schedule: | |
- cron: "0 0 * * 0" | |
env: | |
PUB_ENVIRONMENT: bot.github | |
jobs: | |
# Check code formatting and static analysis. | |
analyze: | |
runs-on: macos-latest | |
defaults: | |
run: | |
working-directory: pkgs/swift2objc/ | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
- uses: dart-lang/setup-dart@e630b99d28a3b71860378cafdc2a067c71107f94 | |
with: | |
sdk: stable | |
- id: install | |
name: Install dependencies | |
run: dart pub get | |
- name: Check formatting | |
run: dart format --output=none --set-exit-if-changed . | |
if: always() && steps.install.outcome == 'success' | |
- name: Analyze code | |
run: dart analyze --fatal-infos | |
if: always() && steps.install.outcome == 'success' | |
test-mac: | |
needs: analyze | |
runs-on: 'macos-latest' | |
defaults: | |
run: | |
working-directory: pkgs/swift2objc/ | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
- uses: dart-lang/setup-dart@e630b99d28a3b71860378cafdc2a067c71107f94 | |
with: | |
sdk: stable | |
- name: Install dependencies | |
run: dart pub get | |
- name: Run VM tests and collect coverage | |
run: dart run coverage:test_with_coverage --scope-output=swift2objc | |
- name: Upload coverage | |
uses: coverallsapp/github-action@cfd0633edbd2411b532b808ba7a8b5e04f76d2c8 | |
with: | |
flag-name: swift2objc | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
parallel: true | |
path-to-lcov: pkgs/swift2objc/coverage/lcov.info | |
- name: Upload coverage | |
uses: coverallsapp/github-action@cfd0633edbd2411b532b808ba7a8b5e04f76d2c8 | |
with: | |
carryforward: "ffigen,jni,jnigen,native_assets_builder_macos,native_assets_builder_ubuntu,native_assets_builder_windows,native_assets_cli_macos,native_assets_cli_ubuntu,native_assets_cli_windows,native_toolchain_c_macos,native_toolchain_c_ubuntu,native_toolchain_c_windows,objective_c,swift2objc" | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
parallel-finished: true |