Files
loongyan/.gitea/workflows/dart-ci.yml
lzw-723 275ce07c76
Some checks failed
Dart CI / build (push) Failing after 1m56s
修改工作流dart sdk版本
2026-04-03 21:14:08 +08:00

35 lines
731 B
YAML

name: Dart CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Dart SDK
uses: dart-lang/setup-dart@v1
with:
sdk: 'stable' # 可选: stable, beta, dev 或具体版本如 3.3.0
- name: Install dependencies
run: dart pub get
- name: Verify formatting
run: dart format --output=none --set-exit-if-changed .
- name: Analyze project source
run: dart analyze
- name: Run tests
run: dart test
- name: Build executable
run: dart compile exe bin/server.dart -o build/loongyan