Commit 31f4bb9

mo khan <mo.khan@gmail.com>
2021-02-04 18:11:01
feat: add ci job for GH actions
1 parent 88def71
Changed files (1)
.github
workflows
.github/workflows/ci.yml
@@ -0,0 +1,29 @@
+---
+name: Continuous Integration
+on: [push, pull_request]
+jobs:
+  test:
+    runs-on: ubuntu-latest
+    strategy:
+      matrix:
+        ruby-version: ['2.4', '2.5', '2.6', '2.7', '3.0']
+    steps:
+      - uses: actions/checkout@v2
+      - name: Set up Ruby
+        uses: ruby/setup-ruby@1
+        with:
+          ruby-version: ${{ matrix.ruby-version }}
+          bundler-cache: true
+      - name: Run tests
+        run: sh bin/cibuild
+  lint:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v2
+      - name: Set up Ruby
+        uses: ruby/setup-ruby@1
+        with:
+          ruby-version: '2.7'
+          bundler-cache: true
+      - name: Run linters
+        run: sh bin/lint