Skip to content

Commit

Permalink
Add some CI
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-ancell committed Nov 20, 2023
1 parent 613f838 commit 11abfe4
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 2 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/analyze.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Analyze

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-20.04

container:
image: dart:stable

steps:
- uses: actions/checkout@v2

- name: Install dependencies
run: dart pub get

- name: Analyze project source
run: dart analyze --fatal-infos --fatal-warnings .
23 changes: 23 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Format

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-20.04

container:
image: dart:stable

steps:
- uses: actions/checkout@v2

- name: Install dependencies
run: dart pub get

- name: Verify formatting
run: dart format --output=none --set-exit-if-changed .
4 changes: 2 additions & 2 deletions lib/src/wayland_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1315,8 +1315,8 @@ class WaylandKeyboard extends WaylandObject {
return true;
case 5:
var buffer = WaylandReadBuffer(payload);
this.rate = buffer.readInt();
this.delay = buffer.readInt();
rate = buffer.readInt();
delay = buffer.readInt();
return true;
default:
return false;
Expand Down

0 comments on commit 11abfe4

Please sign in to comment.