summaryrefslogtreecommitdiff
path: root/.github/workflows/main.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/main.yml')
-rw-r--r--.github/workflows/main.yml32
1 files changed, 32 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644
index 0000000..3052995
--- /dev/null
+++ b/.github/workflows/main.yml
@@ -0,0 +1,32 @@
+name: ci
+on:
+ push:
+ branches:
+ - main
+ pull_request:
+ workflow_dispatch:
+jobs:
+ lint:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - uses: ruby/setup-ruby@v1
+ with:
+ ruby-version: 3.0.3
+ bundler-cache: true
+ - run: ./script/setup
+ - run: ./script/lint
+ test:
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ ruby:
+ - 3.0.3
+ steps:
+ - uses: actions/checkout@v2
+ - uses: ruby/setup-ruby@v1
+ with:
+ ruby-version: ${{ matrix.ruby }}
+ bundler-cache: true
+ - run: ./script/setup
+ - run: ./script/test