-
Notifications
You must be signed in to change notification settings - Fork 318
41 lines (38 loc) · 1.13 KB
/
ruby.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: ruby
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
jobs:
style:
runs-on: ubuntu-22.04
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
steps:
- uses: actions/checkout@v4
- uses: jidicula/[email protected]
with:
clang-format-version: "18"
check-path: ruby
test:
runs-on: ubuntu-22.04
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
steps:
- uses: actions/checkout@v4
- name: Install libraries
run: |
set -x
sudo apt-get update -q || :
sudo apt-get install --no-install-recommends -q -y build-essential ruby-dev bundler
- name: Build extension
run: |
pushd ./ruby/command-t/ext/command-t
ruby extconf.rb --vendor
make
popd
- name: Install dependencies
run: bundle install
- name: Run tests
run: bundle exec rspec -Iruby