Skip to content

Merge package:platform #1

Merge package:platform

Merge package:platform #1

Workflow file for this run

name: Platform Package
on:
# Run CI on pushes to the main branch, and on PRs against main.
push:
branches: [ main ]
paths:
- '.github/workflows/platform.yaml'
- 'pkgs/platform/**'
pull_request:
branches: [ main ]
paths:
- '.github/workflows/platform.yaml'
- 'pkgs/platform/**'
schedule:
- cron: "0 0 * * 0"
env:
PUB_ENVIRONMENT: bot.github
defaults:
run:
working-directory: pkgs/platform/
jobs:
correctness:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
- uses: dart-lang/setup-dart@9a04e6d73cca37bd455e0608d7e5092f881fd603
with:
sdk: dev
- name: Install dependencies
run: dart pub upgrade
- name: Verify formatting
run: dart format --output=none --set-exit-if-changed .
- name: Analyze project source
run: dart analyze --fatal-infos
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
sdk: [stable, beta, dev]
steps:
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
- uses: dart-lang/setup-dart@9a04e6d73cca37bd455e0608d7e5092f881fd603
with:
sdk: ${{ matrix.sdk }}
- name: Install dependencies
run: dart pub upgrade
- name: Run Tests
run: dart test