Skip to content

Commit

Permalink
workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
knopp committed Aug 28, 2023
1 parent 1e5585a commit 53c0fa7
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 4 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/check_and_lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
on:
pull_request:
push:
branches:
- main

name: Check and Lint

jobs:
Flutter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dart-lang/setup-dart@v1
- name: Dart Format
run: dart format . --output=none --set-exit-if-changed
working-directory: build_tool
- name: Analyze
run: dart analyze
working-directory: build_tool
- name: Test
run: dart test
working-directory: build_tool
7 changes: 4 additions & 3 deletions build_tool/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ include: package:lints/recommended.yaml

# Uncomment the following section to specify additional rules.

# linter:
# rules:
# - camel_case_types
linter:
rules:
- prefer_relative_imports
- directives_ordering

# analyzer:
# exclude:
Expand Down
2 changes: 1 addition & 1 deletion build_tool/lib/src/build_tool.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import 'dart:io';

import 'package:args/command_runner.dart';
import 'package:build_tool/src/verify_binaries.dart';
import 'package:ed25519_edwards/ed25519_edwards.dart';
import 'package:github/github.dart';
import 'package:hex/hex.dart';
Expand All @@ -16,6 +15,7 @@ import 'options.dart';
import 'precompile_binaries.dart';
import 'target.dart';
import 'util.dart';
import 'verify_binaries.dart';

final log = Logger('build_tool');

Expand Down

0 comments on commit 53c0fa7

Please sign in to comment.