Commit 57a173e

mo khan <mo@mokhan.ca>
2021-02-05 04:23:28
chore: update ci config
1 parent 2991984
.github/workflows/ci.yml
@@ -0,0 +1,31 @@
+name: ci
+on:
+  push:
+    branches: [main]
+  pull_request:
+    branches: [main]
+jobs:
+  test:
+    runs-on: ubuntu-latest
+    strategy:
+      matrix:
+        ruby-version: ['2.5', '2.6', '2.7', '3.0']
+    steps:
+      - uses: actions/checkout@v2
+      - name: Set up Ruby
+        uses: ruby/setup-ruby@v1
+        with:
+          ruby-version: ${{ matrix.ruby-version }}
+          bundler-cache: true
+      - name: Running tests…
+        run: sh bin/test
+  style:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v2
+      - uses: ruby/setup-ruby@v1
+        with:
+          ruby-version: '3.0'
+          bundler-cache: true
+      - name: Running style checks…
+        run: sh bin/style
.github/workflows/test.yml
@@ -1,17 +0,0 @@
-name: Test
-
-on: [push, pull_request]
-
-jobs:
-  test:
-    runs-on: ubuntu-latest
-    strategy:
-      matrix:
-        ruby: [ '2.5', '2.6', '2.7' ]
-    steps:
-    - uses: actions/checkout@v1
-    - uses: actions/setup-ruby@v1
-      with:
-        ruby-version: ${{ matrix.ruby }}
-    - name: cibuild
-      run: bin/cibuild
.github/dependabot.yml
@@ -0,0 +1,9 @@
+---
+version: 2
+updates:
+  - package-ecosystem: "bundler"
+    directory: "/"
+    schedule:
+      interval: "daily"
+    assignees:
+      - "xlgmokha"
bin/cibuild
@@ -1,22 +0,0 @@
-#!/bin/sh
-
-set -e
-[ -z "$DEBUG" ] || set -x
-
-cd "$(dirname "$0")/.."
-
-export RUBY_GC_MALLOC_LIMIT=79000000
-export RUBY_GC_HEAP_INIT_SLOTS=800000
-export RUBY_HEAP_FREE_MIN=100000
-export RUBY_HEAP_SLOTS_INCREMENT=400000
-export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1
-export CIBUILD=1
-
-echo "[$(date "+%H:%M:%S")] ==> Running setup…"
-bin/setup
-
-echo "[$(date "+%H:%M:%S")] ==> Running tests…"
-bin/test
-
-echo "[$(date "+%H:%M:%S")] ==> Running linters…"
-bin/lint
bin/console
@@ -4,12 +4,5 @@
 require 'bundler/setup'
 require 'net/hippie'
 
-# You can add fixtures and/or initialization code here to make experimenting
-# with your gem easier. You can also use a different console, if you like.
-
-# (If you use this, don't forget to add pry to your Gemfile!)
-# require "pry"
-# Pry.start
-
 require 'irb'
 IRB.start(__FILE__)
bin/lint
@@ -1,5 +0,0 @@
-#!/bin/sh
-
-set -e
-
-bundle exec rake lint
bin/setup
@@ -1,7 +1,7 @@
-#!/usr/bin/env bash
-set -euo pipefail
-IFS=$'\n\t'
+#!/bin/sh
+set -e
+[ -z "$DEBUG" ] || set -x
+
+cd "$(dirname "$0")/.."
 
-ruby -v
-gem install bundler -v '~> 2.0'
 bundle install
bin/shipit
@@ -1,10 +1,8 @@
 #!/bin/sh
 
 set -e
+[ -z "$DEBUG" ] || set -x
 
 cd "$(dirname "$0")/.."
 
-[ -z "$DEBUG" ] || set -x
-
-bin/cibuild
 bundle exec rake release
bin/style
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -e
+[ -z "$DEBUG" ] || set -x
+
+cd "$(dirname "$0")/.."
+
+bundle exec rake rubocop
bin/test
@@ -1,6 +1,7 @@
 #!/bin/sh
 
 set -e
+[ -z "$DEBUG" ] || set -x
 
 cd "$(dirname "$0")/.."