-
Notifications
You must be signed in to change notification settings - Fork 1
117 lines (111 loc) · 3.33 KB
/
Copy pathalchemrest-sentry.yml
File metadata and controls
117 lines (111 loc) · 3.33 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
name: alchemrest-sentry/ci
on:
push:
branches:
- main
paths:
- alchemrest-sentry/**
- alchemrest/**
- .github/workflows/alchemrest-sentry.yml
pull_request:
paths:
- alchemrest-sentry/**
- alchemrest/**
- .github/workflows/alchemrest-sentry.yml
permissions:
contents: read
packages: read
defaults:
run:
working-directory: alchemrest-sentry
jobs:
lint:
runs-on: ubuntu-latest
name: Lint
services:
postgres:
image: postgres:15.2
env:
POSTGRES_HOST_AUTH_METHOD: trust
POSTGRES_USER: runner
POSTGRES_DB: alchemrest_sentry_test
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- uses: ruby/setup-ruby@e34163cd15f4bb403dcd72d98e295997e6a55798 # v1
with:
working-directory: alchemrest-sentry
ruby-version: "3.2"
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: rubocop
run: bundle exec rubocop
coverage:
runs-on: ubuntu-latest
name: Semantic Coverage (incremental)
services:
postgres:
image: postgres:15.2
env:
POSTGRES_HOST_AUTH_METHOD: trust
POSTGRES_USER: runner
POSTGRES_DB: alchemrest_sentry_test
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- uses: ruby/setup-ruby@e34163cd15f4bb403dcd72d98e295997e6a55798 # v1
with:
working-directory: alchemrest-sentry
ruby-version: "3.2"
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Verify mutation coverage
run: |
git fetch origin main --depth 1 --quiet # we need a reference for incremental mutation testing
bundle exec mutant run --since origin/main
build:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ["3.2"]
gemfile:
- gemfiles/rails_7_2.gemfile
- gemfiles/rails_8_0.gemfile
name: Ruby ${{ matrix.ruby }} (${{ matrix.gemfile }})
services:
postgres:
image: postgres:15.2
env:
POSTGRES_HOST_AUTH_METHOD: trust
POSTGRES_USER: runner
POSTGRES_DB: alchemrest_sentry_test
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- uses: ruby/setup-ruby@e34163cd15f4bb403dcd72d98e295997e6a55798 # v1
env:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
with:
working-directory: alchemrest-sentry
ruby-version: ${{ matrix.ruby }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: rspec
env:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
run: bundle exec rspec