Skip to content

Commit

Permalink
Switched Travis CI with Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jo1gi committed May 4, 2021
1 parent 4896d7e commit 63ead3c
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 9 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
@@ -0,0 +1,15 @@
name: tests
on:
push:
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Download source
uses: actions/checkout@v2
- name: Install Crystal
uses: oprypin/install-crystal@v1
- name: Run tests
run: crystal spec
5 changes: 0 additions & 5 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -2,7 +2,7 @@
[![GitHub release](https://img.shields.io/github/release/jo1gi/openurl.svg)](https://github.com/jo1gi/openurl/releases)
![GitHub top language](https://img.shields.io/github/languages/top/jo1gi/openurl)
![License](https://img.shields.io/github/license/jo1gi/openurl)
![Travis (.org)](https://img.shields.io/travis/jo1gi/openurl)
![Build](https://img.shields.io/github/workflow/status/jo1gi/openurl/tests)

Opens urls based on rules in a yaml file.

Expand All @@ -20,7 +20,7 @@ opened through firefox, and gemini capsules are opened in amfora.
```yaml
- protocol: https?
command: firefox
subcommands:
subrules:
- domain: youtube.com
command: vlc

Expand Down
3 changes: 1 addition & 2 deletions src/config.cr
@@ -1,6 +1,5 @@
require "yaml"
require "mime"
require "colorize"

module Config
extend self
Expand All @@ -19,6 +18,6 @@ module Config
if File.exists?(path)
return path
end
abort "Could not find config file\nThe config should be placed: #{path.colorize(:blue)}"
abort "Could not find config file\nThe config should be placed: #{path}"
end
end

0 comments on commit 63ead3c

Please sign in to comment.