diff options
| author | mo <mo.khan@gmail.com> | 2021-02-04 21:29:07 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-04 21:29:07 -0700 |
| commit | 12efb7ca45af4149b8e2f9febc40e964114cc369 (patch) | |
| tree | 403c0895ea1c044d4ef4ca8563bd84e4e73fd176 | |
| parent | 299198422219c0c2721d824922e68272b1be5dd7 (diff) | |
| parent | 633564d729542c7b1336dbb2b78bd58b1714d1ab (diff) | |
Merge pull request #6 from xlgmokha/update-actions
chore: update ci config
| -rw-r--r-- | .github/dependabot.yml | 9 | ||||
| -rw-r--r-- | .github/workflows/ci.yml | 31 | ||||
| -rw-r--r-- | .github/workflows/test.yml | 17 | ||||
| -rw-r--r-- | LICENSE.txt | 2 | ||||
| -rwxr-xr-x | bin/cibuild | 22 | ||||
| -rwxr-xr-x | bin/console | 7 | ||||
| -rwxr-xr-x | bin/lint | 5 | ||||
| -rwxr-xr-x | bin/setup | 10 | ||||
| -rwxr-xr-x | bin/shipit | 4 | ||||
| -rwxr-xr-x | bin/style | 8 | ||||
| -rwxr-xr-x | bin/test | 1 |
11 files changed, 56 insertions, 60 deletions
diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..7824b5f --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,9 @@ +--- +version: 2 +updates: + - package-ecosystem: "bundler" + directory: "/" + schedule: + interval: "daily" + assignees: + - "xlgmokha" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..23dde06 --- /dev/null +++ b/.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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 794eb1d..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -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 diff --git a/LICENSE.txt b/LICENSE.txt index ee1e462..1a88901 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018 mo +Copyright (c) 2018 mo khan Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/bin/cibuild b/bin/cibuild deleted file mode 100755 index 4990224..0000000 --- a/bin/cibuild +++ /dev/null @@ -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 diff --git a/bin/console b/bin/console index 3a6e116..520b0ca 100755 --- a/bin/console +++ b/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__) diff --git a/bin/lint b/bin/lint deleted file mode 100755 index 054c5c8..0000000 --- a/bin/lint +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -set -e - -bundle exec rake lint @@ -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 @@ -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 diff --git a/bin/style b/bin/style new file mode 100755 index 0000000..23fa24d --- /dev/null +++ b/bin/style @@ -0,0 +1,8 @@ +#!/bin/sh + +set -e +[ -z "$DEBUG" ] || set -x + +cd "$(dirname "$0")/.." + +bundle exec rake rubocop @@ -1,6 +1,7 @@ #!/bin/sh set -e +[ -z "$DEBUG" ] || set -x cd "$(dirname "$0")/.." |
