Skip to content
This repository was archived by the owner on Dec 30, 2025. It is now read-only.

Commit e2d0c8d

Browse files
committed
Switch from Travis to GithubActions
1 parent b03b4e4 commit e2d0c8d

File tree

3 files changed

+102
-24
lines changed

3 files changed

+102
-24
lines changed

.github/workflows/ci.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
---
2+
name: CI
3+
4+
on:
5+
push:
6+
branches:
7+
- '**'
8+
pull_request:
9+
branches:
10+
- '**'
11+
schedule:
12+
- cron: '0 4 1 * *'
13+
# Run workflow manually
14+
workflow_dispatch:
15+
16+
jobs:
17+
rubocop:
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v5
23+
24+
- name: Setup Ruby
25+
uses: ruby/setup-ruby@v1
26+
with:
27+
ruby-version: '3.2'
28+
29+
- name: Bundler
30+
run: bundle install
31+
32+
- name: Rubocop
33+
run: bin/rubocop
34+
35+
rspec:
36+
runs-on: ubuntu-latest
37+
38+
strategy:
39+
fail-fast: false
40+
matrix:
41+
ruby:
42+
- '4.0'
43+
- '3.4'
44+
- '3.3'
45+
- '3.2'
46+
- 'head'
47+
- 'jruby'
48+
- 'truffleruby'
49+
50+
steps:
51+
- name: Checkout
52+
uses: actions/checkout@v5
53+
54+
- name: Setup Ruby
55+
uses: ruby/setup-ruby@v1
56+
with:
57+
ruby-version: ${{ matrix.ruby }}
58+
bundler-cache: true
59+
60+
- name: Run RSpec
61+
run: bin/rspec
62+
63+
- name: Publish code coverage
64+
uses: qltysh/qlty-action/coverage@v2
65+
with:
66+
token: ${{ secrets.QLTY_COVERAGE_TOKEN }}
67+
files: coverage/coverage.json

.qlty/qlty.toml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
config_version = "0"
2+
3+
[[source]]
4+
name = "default"
5+
default = true
6+
7+
[[plugin]]
8+
name = "actionlint"
9+
10+
[[plugin]]
11+
name = "checkov"
12+
version = "3.2.49"
13+
14+
[[plugin]]
15+
name = "markdownlint"
16+
version = "0.31.1"
17+
18+
[[plugin]]
19+
name = "osv-scanner"
20+
21+
[[plugin]]
22+
name = "prettier"
23+
version = "2.8.4"
24+
25+
[[plugin]]
26+
name = "ripgrep"
27+
28+
[[plugin]]
29+
name = "trivy"
30+
31+
[[plugin]]
32+
name = "trufflehog"
33+
34+
[[plugin]]
35+
name = "yamllint"

.travis.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)