Skip to content

Commit ad77e1a

Browse files
authored
Merge pull request #333 from prometheus/remove-circleci
Replace CircleCI with GitHub Actions
2 parents 8606c38 + a27c48e commit ad77e1a

4 files changed

Lines changed: 50 additions & 35 deletions

File tree

.circleci/config.yml

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

.github/workflows/ci.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
name: CI
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
pull_request:
9+
workflow_dispatch:
10+
11+
permissions:
12+
contents: read
13+
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
16+
cancel-in-progress: true
17+
18+
jobs:
19+
test:
20+
name: Ruby ${{ matrix.ruby-version }}
21+
runs-on: ubuntu-24.04
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
ruby-version:
26+
- "3.2"
27+
- "3.3"
28+
- "3.4"
29+
- "4.0"
30+
- "jruby-9.4"
31+
- "jruby-10.0.2.0"
32+
33+
steps:
34+
- name: Check out
35+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
36+
with:
37+
persist-credentials: false
38+
39+
- name: Set up Ruby ${{ matrix.ruby-version }}
40+
uses: ruby/setup-ruby@afeafc3d1ab54a631816aba4c914a0081c12ff2f # v1.310.0
41+
with:
42+
ruby-version: ${{ matrix.ruby-version }}
43+
bundler-cache: true
44+
cache-version: ${{ matrix.ruby-version }}
45+
46+
- name: Run specs
47+
run: bundle exec rake

COMPATIBILITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Any Ruby version that has not received an End-of-Life notice (e.g.
88
is supported.
99

1010
To ensure we're meeting these guidelines, we test the client against all
11-
supported versions, as specified in our [build matrix](.circleci/config.yml).
11+
supported versions, as specified in our [build matrix](.github/workflows/ci.yml).
1212

1313
# Deprecation
1414

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ through a HTTP interface. Intended to be used together with a
55
[Prometheus server][1].
66

77
[![Gem Version][4]](http://badge.fury.io/rb/prometheus-client)
8-
[![Build Status][3]](https://circleci.com/gh/prometheus/client_ruby/tree/main.svg?style=svg)
8+
[![Build Status][3]](https://github.com/prometheus/client_ruby/actions/workflows/ci.yml)
99

1010
## Usage
1111

@@ -504,7 +504,7 @@ rake
504504

505505
[1]: https://github.com/prometheus/prometheus
506506
[2]: http://rack.github.io/
507-
[3]: https://circleci.com/gh/prometheus/client_ruby/tree/main.svg?style=svg
507+
[3]: https://github.com/prometheus/client_ruby/actions/workflows/ci.yml/badge.svg
508508
[4]: https://badge.fury.io/rb/prometheus-client.svg
509509
[8]: https://github.com/prometheus/pushgateway
510510
[9]: lib/prometheus/middleware/exporter.rb

0 commit comments

Comments
 (0)