Skip to content

Commit 22e949f

Browse files
authored
Add github actions (#304)
* Add github actions * Fix yaml syntax * Fix yaml syntax * Fix vala lint
1 parent f699635 commit 22e949f

32 files changed

+4716
-4659
lines changed

.editorconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
root = true
22
[*]
3-
indent_style = tab
3+
indent_style = space
44
trim_trailing_whitespace = true
55
insert_final_newline = true
66
charset = utf-8
@@ -9,4 +9,4 @@ charset = utf-8
99
indent_size = 2
1010

1111
[*.vala]
12-
indent_size = 4
12+
indent_size = 4

.github/workflows/build.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: "CI"
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
container:
11+
image: elementary/docker:unstable
12+
13+
steps:
14+
- uses: actions/checkout@v1
15+
- name: Install Dependencies
16+
run: |
17+
apt update
18+
apt install -y meson libgranite-dev libgtk-3-dev libjson-glib-dev libgudev-1.0-dev libevdev-dev libgtksourceview-3.0-dev libxml2-dev libglib2.0-dev libgda-5.0-dev libmysqlclient-dev libpq-dev libgda-5.0-mysql libgda-5.0-postgres libsecret-1-dev libssh2-1-dev valac
19+
- name: Build
20+
env:
21+
DESTDIR: out
22+
run: |
23+
meson build
24+
ninja -C build
25+
ninja -C build install

.github/workflows/lint.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: "CI: Lint"
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
lint:
7+
8+
runs-on: ubuntu-latest
9+
10+
container:
11+
image: valalang/lint
12+
13+
steps:
14+
- uses: actions/checkout@v1
15+
- name: Lint
16+
run: io.elementary.vala-lint -d .

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ If you like Sequeler and you want to support its development, consider donating
3030
## Install it from source
3131
You can install Sequeler by compiling from source, here's the list of dependencies required:
3232
- `gtk+-3.0>=3.22.29`
33-
- `granite>=0.5.1`
33+
- `granite>=5.2`
3434
- `glib-2.0`
3535
- `gee-0.8`
3636
- `gobject-2.0`
@@ -41,7 +41,7 @@ You can install Sequeler by compiling from source, here's the list of dependenci
4141
- `libssh2`
4242
- `meson`
4343

44-
## Building
44+
## Building
4545
```
4646
meson build --prefix=/usr
4747
sudo -C build ninja install

src/Application.vala

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
*/
2121

2222
namespace Sequeler {
23-
public Sequeler.Services.Settings settings;
24-
public Sequeler.Services.PasswordManager password_mngr;
25-
public Sequeler.Services.UpgradeManager upgrade_mngr;
26-
public Secret.Schema schema;
23+
public Sequeler.Services.Settings settings;
24+
public Sequeler.Services.PasswordManager password_mngr;
25+
public Sequeler.Services.UpgradeManager upgrade_mngr;
26+
public Secret.Schema schema;
2727
}
2828

2929
public class Sequeler.Application : Gtk.Application {
@@ -74,11 +74,11 @@ public class Sequeler.Application : Gtk.Application {
7474
var window = this.add_new_window ();
7575

7676
window.main.library.check_open_sqlite_file (file.get_uri (), file.get_basename ());
77-
break;
77+
break;
7878

79-
default:
80-
error (_("Something completely unexpected happened"));
81-
}
79+
default:
80+
error (_("Something completely unexpected happened"));
81+
}
8282
}
8383
}
8484

@@ -95,6 +95,6 @@ public class Sequeler.Application : Gtk.Application {
9595
}
9696

9797
protected override void activate () {
98-
this.add_new_window ();
98+
this.add_new_window ();
9999
}
100100
}

0 commit comments

Comments
 (0)