sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 255fa33744602a090c6134a591af276ccccb6256
parent 15f066bd05042ed732a239046efe368834c48c1f
Author: Dan Callaghan <djc@djc.id.au>
Date:   Sun, 17 Apr 2022 15:18:46 +1000

switch to Github Actions instead of Travis CI

Diffstat:
A .github/workflows/checks.yml | 35 +++++++++++++++++++++++++++++++++++
D .travis.yml | 18 ------------------
M Manifest.txt | 2 +-
M Rakefile | 2 +-
4 files changed, 37 insertions(+), 20 deletions(-)
diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml
@@ -0,0 +1,35 @@
+name: checks
+on:
+  push:
+    branches:
+    - develop
+  pull_request:
+    branches:
+    - develop
+permissions:
+  contents: read
+jobs:
+  rake-ci:
+    runs-on: ubuntu-latest
+    strategy:
+      matrix:
+        ruby-version:
+        - '2.5'
+        - '2.6'
+        - '2.7'
+        - '3.0'
+    steps:
+    - name: Install pandoc
+      run: sudo apt-get install -y pandoc
+    - uses: actions/checkout@v3
+      with:
+        submodules: recursive
+    - name: Set up Ruby
+      uses: ruby/setup-ruby@v1
+      with:
+        ruby-version: ${{ matrix.ruby-version }}
+        bundler-cache: true
+    - name: Run Rake ci task
+      run: bundle exec rake ci
+    - name: Test gem installation
+      run: gem install pkg/sup-*.gem
diff --git a/.travis.yml b/.travis.yml
@@ -1,18 +0,0 @@
-language: ruby
-
-dist: focal
-
-rvm:
-  - 2.5
-  - 2.6
-  - 2.7
-
-before_install:
-  - sudo apt update -qq
-  - sudo apt install -qq uuid-dev uuid libncursesw5-dev libncursesw5 gnupg2 pandoc
-  - git submodule update --init --recursive
-
-script:
-  - bundle exec rake travis
-  - bundle exec gem install pkg/sup-*.gem
-
diff --git a/Manifest.txt b/Manifest.txt
@@ -1,6 +1,6 @@
+.github/workflows/checks.yml
 .gitignore
 .gitmodules
-.travis.yml
 CONTRIBUTORS
 Gemfile
 HACKING
diff --git a/Rakefile b/Rakefile
@@ -13,7 +13,7 @@ end
 task :default => :test
 
 task :build => [:man]
-task :travis => [:test, :rubocop_packaging, :check_manifest, :build]
+task :ci => [:test, :rubocop_packaging, :check_manifest, :build]
 
 def test_pandoc
   return system("pandoc -v > /dev/null 2>&1")