Unverified Commit 502dea08 authored by Jimmy Jia's avatar Jimmy Jia Committed by GitHub
Browse files

chore: Use Codecov action (#5093)

* chore: Use Codecov action

* fix

* more

* Update README.md
parent 4526ab82
......@@ -4,7 +4,6 @@ about: Create a report to help us improve
title: ''
labels: ''
assignees: ''
---
## Describe the bug
......
......@@ -4,7 +4,6 @@ about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''
---
## Is your feature request related to a problem? Please describe
......
name: CI
on:
push:
branches:
- master
- bs3-dev
pull_request:
branches:
- master
- bs3-dev
jobs:
ci:
name: CI
runs-on: ${{ matrix.os }}
strategy:
matrix:
browser: [ChromeHeadless, FirefoxHeadless]
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node.js environment
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Update Brew (macOS)
if: matrix.os == 'macOS-latest'
run: brew update
- name: Install Chrome (macOS)
if: matrix.os == 'macOS-latest' && matrix.browser == 'ChromeHeadless'
run: brew cask install google-chrome
- name: Install Firefox (macOS)
if: matrix.os == 'macOS-latest' && matrix.browser == 'FirefoxHeadless'
run: brew cask install firefox
- name: Install Dependencies
run: yarn bootstrap
- name: Run Tests
run: yarn test
env:
BROWSER: ${{ matrix.browser }}
- name: Codecov
uses: codecov/codecov-action@v1
- name: Build Project
run: yarn build
name: Node CI
on:
push:
branches:
- master
- bs3-dev
pull_request:
branches:
- master
- bs3-dev
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
browser: [ChromeHeadless, FirefoxHeadless]
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- name: Checking out Repository
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Update Brew (macOS)
if: matrix.os == 'macOS-latest'
run: brew update
- name: Install Chrome (macOS)
if: matrix.os == 'macOS-latest' && matrix.browser == 'ChromeHeadless'
run: brew cask install google-chrome
- name: Install Firefox (macOS)
if: matrix.os == 'macOS-latest' && matrix.browser == 'FirefoxHeadless'
run: brew cask install firefox
- name: Install Dependencies
run: yarn bootstrap
- name: Run Tests
run: yarn test
env:
BROWSER: ${{ matrix.browser }}
- name: Upload Test Coverage to codecov
run: yarn run codecov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Build Project
run: yarn build
......@@ -2,7 +2,7 @@
> [Bootstrap 4][bootstrap] components built with [React][react].
[![GitHub Actions Build status][gh-actions-badge]][gh-actions]
[![GitHub Actions CI status][gh-actions-badge]][gh-actions]
[![Travis CI Build status][travis-badge]][travis]
[![npm][npm-badge]][npm]
[![Codecov][codecov-badge]][codecov]
......@@ -64,5 +64,5 @@ Yes please! See the [contributing guidelines][contributing] for details.
[discord]: https://discord.gg/0ZcbPKXt5bXLs9XK
[netlify-badge]: https://api.netlify.com/api/v1/badges/91501718-8820-4d69-b7fe-1616eff5914e/deploy-status
[netlify]: https://app.netlify.com/sites/react-bootstrap/deploys
[gh-actions-badge]: https://github.com/react-bootstrap/react-bootstrap/workflows/Node%20CI/badge.svg
[gh-actions-badge]: https://github.com/react-bootstrap/react-bootstrap/workflows/CI/badge.svg
[gh-actions]: https://github.com/react-bootstrap/react-bootstrap/actions
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment