Skip to content

Commit

Permalink
Add github actions (#304)
Browse files Browse the repository at this point in the history
* Add github actions

* Fix yaml syntax

* Fix yaml syntax

* Fix vala lint
  • Loading branch information
Alecaddd authored Apr 1, 2020
1 parent f699635 commit 22e949f
Show file tree
Hide file tree
Showing 32 changed files with 4,716 additions and 4,659 deletions.
4 changes: 2 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
root = true
[*]
indent_style = tab
indent_style = space
trim_trailing_whitespace = true
insert_final_newline = true
charset = utf-8
Expand All @@ -9,4 +9,4 @@ charset = utf-8
indent_size = 2

[*.vala]
indent_size = 4
indent_size = 4
25 changes: 25 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: "CI"

on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest

container:
image: elementary/docker:unstable

steps:
- uses: actions/checkout@v1
- name: Install Dependencies
run: |
apt update
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
- name: Build
env:
DESTDIR: out
run: |
meson build
ninja -C build
ninja -C build install
16 changes: 16 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: "CI: Lint"

on: [push, pull_request]

jobs:
lint:

runs-on: ubuntu-latest

container:
image: valalang/lint

steps:
- uses: actions/checkout@v1
- name: Lint
run: io.elementary.vala-lint -d .
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ If you like Sequeler and you want to support its development, consider donating
## Install it from source
You can install Sequeler by compiling from source, here's the list of dependencies required:
- `gtk+-3.0>=3.22.29`
- `granite>=0.5.1`
- `granite>=5.2`
- `glib-2.0`
- `gee-0.8`
- `gobject-2.0`
Expand All @@ -41,7 +41,7 @@ You can install Sequeler by compiling from source, here's the list of dependenci
- `libssh2`
- `meson`

## Building
## Building
```
meson build --prefix=/usr
sudo -C build ninja install
Expand Down
18 changes: 9 additions & 9 deletions src/Application.vala
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
*/

namespace Sequeler {
public Sequeler.Services.Settings settings;
public Sequeler.Services.PasswordManager password_mngr;
public Sequeler.Services.UpgradeManager upgrade_mngr;
public Secret.Schema schema;
public Sequeler.Services.Settings settings;
public Sequeler.Services.PasswordManager password_mngr;
public Sequeler.Services.UpgradeManager upgrade_mngr;
public Secret.Schema schema;
}

public class Sequeler.Application : Gtk.Application {
Expand Down Expand Up @@ -74,11 +74,11 @@ public class Sequeler.Application : Gtk.Application {
var window = this.add_new_window ();

window.main.library.check_open_sqlite_file (file.get_uri (), file.get_basename ());
break;
break;

default:
error (_("Something completely unexpected happened"));
}
default:
error (_("Something completely unexpected happened"));
}
}
}

Expand All @@ -95,6 +95,6 @@ public class Sequeler.Application : Gtk.Application {
}

protected override void activate () {
this.add_new_window ();
this.add_new_window ();
}
}
Loading

0 comments on commit 22e949f

Please sign in to comment.