Skip to content

Commit 1097b7c

Browse files
committed
fix CI
Only test PRs and pushes to 7.4-stable to remove duplicate CI runs. Also use codecov for coverage
1 parent c6e57ce commit 1097b7c

1 file changed

Lines changed: 14 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: CI
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches:
6+
- 7.4-stable
7+
pull_request:
48

59
jobs:
610
RSpec:
@@ -93,12 +97,16 @@ jobs:
9397
sudo chown -R runner /home/runner/apt/cache
9498
- name: Prepare database
9599
run: bundle exec rake alchemy:spec:prepare
96-
- name: Run tests & publish code coverage
97-
uses: paambaati/codeclimate-action@v3.2.0
98-
env:
99-
CC_TEST_REPORTER_ID: 8908e9226a16b7c4537ed07da25d09b086dfc7135b4f4c583603e043401288e8
100+
- name: Run tests
101+
run: bundle exec rspec
102+
- name: Upload coverage reports to Codecov
103+
uses: codecov/codecov-action@v5
104+
if: matrix.rails == '7.2' && matrix.ruby == '3.4'
100105
with:
101-
coverageCommand: bundle exec rspec
106+
token: ${{ secrets.CODECOV_TOKEN }}
107+
slug: AlchemyCMS/alchemy-devise
108+
disable_search: true
109+
files: ./coverage/coverage.xml
102110
- uses: actions/upload-artifact@main
103111
if: failure()
104112
with:

0 commit comments

Comments
 (0)