-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (39 loc) · 1.15 KB
/
main.yml
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: Main
on:
push:
branches:
- master
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
name: Lint
steps:
- uses: actions/checkout@v4
- name: Up docker
run: docker compose up -d ruby-rust
- name: bundle install
run: docker compose exec ruby-rust /bin/bash -c 'bundle install'
- name: Check rubocop
run: docker compose exec ruby-rust /bin/bash -c 'bundle exec rake rubocop'
- name: Check syntax tree
run: docker compose exec ruby-rust /bin/bash -c 'bundle exec rake stree:check'
- name: Check Rust
run: docker compose exec ruby-rust /bin/bash -c 'cargo clippy'
test-ruby:
runs-on: ubuntu-latest
name: Ruby-${{ matrix.ruby }}
strategy:
fail-fast: false
matrix:
ruby:
- '3.0.2'
- '3.1.4'
- '3.2.2'
- '3.3.0'
steps:
- uses: actions/checkout@v4
- name: Up docker
run: RUBY_VERSION=${{ matrix.ruby }} docker compose up -d ruby-rust
- name: Run Tests
run: docker compose exec ruby-rust /bin/bash -c 'bundle install && bundle exec rake compile && bundle exec rake spec'