Skip to content

Commit

Permalink
Add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
frodrigo committed Sep 28, 2024
1 parent 4c221b0 commit 01c6d15
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/test-ruby.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Test Ruby

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: libgeos-dev libproj-dev

- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
bundler-cache: true
cache-version: 1

- name: Build missing levenshtein
run: cd /home/runner/work/openstreetmap-logical-history/openstreetmap-logical-history/vendor/bundle/ruby/3.2.0/gems/levenshtein-ffi-1.1.0/ext/levenshtein && make

- name: Run rubocop
run: bundle exec rubocop --parallel -c .rubocop.yml

# - name: Run typecheck
# run: |
# bundle exec tapioca init && \
# bundle exec rake rails_rbi:routes && \
# bundle exec srb rbi suggest-typed && \
# bundle exec srb typecheck -q
# # bundle exec tapioca dsl && \

# - name: Run security checks
# run: |
# bin/bundler-audit --update
# bin/brakeman -q -w2

- name: Run tests
run: bundle exec rake test

0 comments on commit 01c6d15

Please sign in to comment.