summaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2021-02-04 21:45:53 -0700
committermo khan <mo@mokhan.ca>2021-02-04 21:45:53 -0700
commit7bc5e33e59c5218fc06c7fad119f1faa9a05e23f (patch)
tree3b77e0dd9ef3600a28e063df9397cbd2f4a35f03 /.github/workflows/ci.yml
parent1ab190b0374f4e579d85b4993ea184525eefb3bd (diff)
chore: update ci configuration
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r--.github/workflows/ci.yml41
1 files changed, 24 insertions, 17 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 92d7955..aa740c2 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -1,12 +1,15 @@
name: ci
-on: [push]
+on:
+ push:
+ branches: [main]
+ pull_request:
+ branches: [main]
jobs:
- build:
+ test:
runs-on: ubuntu-latest
strategy:
matrix:
- ruby: [ '2.5', '2.6', '2.7', '3.0' ]
- name: RSpec Ruby ${{ matrix.ruby }}
+ ruby: ['2.5', '2.6', '2.7', '3.0']
steps:
- uses: actions/checkout@v2
with:
@@ -15,13 +18,11 @@ jobs:
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- - name: setup
- run: ./bin/setup 2>&1
- - name: test
- run: ./bin/test
- lint:
+ bundler-cache: true
+ - run: ./bin/setup 2>&1
+ - run: ./bin/test
+ style:
runs-on: ubuntu-latest
- name: Lint
steps:
- uses: actions/checkout@v2
with:
@@ -30,17 +31,23 @@ jobs:
- uses: actions/setup-ruby@v1
with:
ruby-version: 2.7
- - name: setup
- run: ./bin/setup
- - name: lint
- run: ./bin/lint
+ - run: ./bin/style
+ audit:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ with:
+ lfs: true
+ submodules: recursive
+ - uses: actions/setup-ruby@v1
+ with:
+ ruby-version: 2.7
+ - run: ./bin/audit
docker:
runs-on: ubuntu-latest
- name: Docker
steps:
- uses: actions/checkout@v2
with:
lfs: true
submodules: recursive
- - name: docker
- run: docker build .
+ - run: docker build .