Skip to content

Commit 502dea0

Browse files
authored
chore: Use Codecov action (react-bootstrap#5093)
* chore: Use Codecov action * fix * more * Update README.md
1 parent 4526ab8 commit 502dea0

File tree

5 files changed

+46
-49
lines changed

5 files changed

+46
-49
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ about: Create a report to help us improve
44
title: ''
55
labels: ''
66
assignees: ''
7-
87
---
98

109
## Describe the bug

.github/ISSUE_TEMPLATE/feature_request.md

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ about: Suggest an idea for this project
44
title: ''
55
labels: ''
66
assignees: ''
7-
87
---
98

109
## Is your feature request related to a problem? Please describe

.github/workflows/ci.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- bs3-dev
7+
pull_request:
8+
branches:
9+
- master
10+
- bs3-dev
11+
jobs:
12+
ci:
13+
name: CI
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
matrix:
17+
browser: [ChromeHeadless, FirefoxHeadless]
18+
os: [ubuntu-latest, windows-latest, macOS-latest]
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v2
22+
- name: Setup Node.js environment
23+
uses: actions/setup-node@v1
24+
with:
25+
node-version: 12.x
26+
- name: Update Brew (macOS)
27+
if: matrix.os == 'macOS-latest'
28+
run: brew update
29+
- name: Install Chrome (macOS)
30+
if: matrix.os == 'macOS-latest' && matrix.browser == 'ChromeHeadless'
31+
run: brew cask install google-chrome
32+
- name: Install Firefox (macOS)
33+
if: matrix.os == 'macOS-latest' && matrix.browser == 'FirefoxHeadless'
34+
run: brew cask install firefox
35+
- name: Install Dependencies
36+
run: yarn bootstrap
37+
- name: Run Tests
38+
run: yarn test
39+
env:
40+
BROWSER: ${{ matrix.browser }}
41+
- name: Codecov
42+
uses: codecov/codecov-action@v1
43+
- name: Build Project
44+
run: yarn build

.github/workflows/nodejs.yml

-45
This file was deleted.

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
> [Bootstrap 4][bootstrap] components built with [React][react].
44
5-
[![GitHub Actions Build status][gh-actions-badge]][gh-actions]
5+
[![GitHub Actions CI status][gh-actions-badge]][gh-actions]
66
[![Travis CI Build status][travis-badge]][travis]
77
[![npm][npm-badge]][npm]
88
[![Codecov][codecov-badge]][codecov]
@@ -64,5 +64,5 @@ Yes please! See the [contributing guidelines][contributing] for details.
6464
[discord]: https://discord.gg/0ZcbPKXt5bXLs9XK
6565
[netlify-badge]: https://api.netlify.com/api/v1/badges/91501718-8820-4d69-b7fe-1616eff5914e/deploy-status
6666
[netlify]: https://app.netlify.com/sites/react-bootstrap/deploys
67-
[gh-actions-badge]: https://github.com/react-bootstrap/react-bootstrap/workflows/Node%20CI/badge.svg
67+
[gh-actions-badge]: https://github.com/react-bootstrap/react-bootstrap/workflows/CI/badge.svg
6868
[gh-actions]: https://github.com/react-bootstrap/react-bootstrap/actions

0 commit comments

Comments
 (0)