summaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
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/workflows/ci.yml
parent299198422219c0c2721d824922e68272b1be5dd7 (diff)
parent633564d729542c7b1336dbb2b78bd58b1714d1ab (diff)
Merge pull request #6 from xlgmokha/update-actions
chore: update ci config
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r--.github/workflows/ci.yml31
1 files changed, 31 insertions, 0 deletions
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