-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (40 loc) · 1.26 KB
/
Copy pathci.yml
File metadata and controls
44 lines (40 loc) · 1.26 KB
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
42
43
44
name: CI
on:
push:
branches: ["main"]
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: oxidize-rb/actions/setup-ruby-and-rust@e5f9a49a7812a078584072f6e3f657ad247c8771 # v1.4.4
with:
bundler-cache: true
cargo-cache: true
- name: RuboCop
run: bundle exec rubocop --format simple
- name: rustfmt
run: cargo fmt --all -- --check
- name: Clippy
run: cargo clippy --workspace -- -D warnings
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
# Supported Ruby versions (keep in sync with release.yml and gemspec)
ruby: ["3.4", "4.0"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: oxidize-rb/actions/setup-ruby-and-rust@e5f9a49a7812a078584072f6e3f657ad247c8771 # v1.4.4
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
cargo-cache: true
- run: bundle exec rake compile
- run: bundle exec rake spec