Skip to content

Commit

Permalink
Switch to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
m-pilia committed Jun 26, 2021
1 parent 05a0b83 commit ccbe62f
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 16 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Checks

on: [push, pull_request]

jobs:
qmllint:
runs-on: ubuntu-20.04
steps:

- name: Checkout
uses: actions/checkout@v2

- name: Install dependencies
run: |
sudo apt-get install -y --no-install-recommends qtdeclarative5-dev-tools
- name: Run qmllint
run: |
find . -name \*.qml -exec /usr/lib/x86_64-linux-gnu/qt5/bin/qmllint {} \+
ESLint:
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v2

- name: Install ESLint
run: |
sudo npm install -g eslint
- name: Run ESLint
run: |
eslint .
Shellcheck:
name: Shellcheck
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v2

- name: Run ShellCheck
uses: ludeeus/action-shellcheck@1.1.0
5 changes: 5 additions & 0 deletions .ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
!.eslintrc.yml
!.github/
!.gitignore
!.gitmodules
!.ignore
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Ambient noise applet for Plasma 5
[![Travis CI Build Status](https://travis-ci.org/m-pilia/plasma-applet-ambientnoise.svg?branch=master)](https://travis-ci.org/m-pilia/plasma-applet-ambientnoise)
[![Checks](https://github.com/m-pilia/plasma-applet-ambientnoise/workflows/Checks/badge.svg)](https://github.com/m-pilia/plasma-applet-ambientnoise/actions/workflows/checks.yml)


![screenshot](https://user-images.githubusercontent.com/8300317/27260682-155864dc-5432-11e7-8afa-4327cac14e32.png)

Expand Down
2 changes: 1 addition & 1 deletion translations/extract-messages.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env bash
set -euo pipefail

BASEDIR=".." # root of translatable sources
Expand Down

0 comments on commit ccbe62f

Please sign in to comment.