summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authormo <mo.khan@gmail.com>2021-02-04 21:29:07 -0700
committerGitHub <noreply@github.com>2021-02-04 21:29:07 -0700
commit12efb7ca45af4149b8e2f9febc40e964114cc369 (patch)
tree403c0895ea1c044d4ef4ca8563bd84e4e73fd176 /.github
parent299198422219c0c2721d824922e68272b1be5dd7 (diff)
parent633564d729542c7b1336dbb2b78bd58b1714d1ab (diff)
Merge pull request #6 from xlgmokha/update-actions
chore: update ci config
Diffstat (limited to '.github')
-rw-r--r--.github/dependabot.yml9
-rw-r--r--.github/workflows/ci.yml31
-rw-r--r--.github/workflows/test.yml17
3 files changed, 40 insertions, 17 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