Skip to content

Commit

Permalink
Prep for migration to GitHub Actions CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
mdo committed Aug 8, 2019
1 parent 34afe84 commit a12466a
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 20 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Run tests
on: [push, pull_request]

jobs:
run:
name: Node ${{ matrix.node }}
runs-on: ubuntu-latest

strategy:
matrix:
node: [8, 10, 12]

steps:
- uses: actions/checkout@master
with:
fetch-depth: 3

- name: Set Node.js version
uses: actions/setup-node@v1.1.0
with:
version: ${{ matrix.node }}

- run: node --version
- run: npm --version
- run: java -version

- name: Install npm dependencies
run: npm ci

- name: Run tests
run: npm test

- name: Run BrowserStack tests
run: npm run js-test-cloud
if: matrix.node == 10 && github.repository == 'twbs/bootstrap' && github.event_name == 'push'
env:
BROWSER_STACK_ACCESS_KEY: "${{ secrets.BROWSER_STACK_ACCESS_KEY }}"
BROWSER_STACK_USERNAME: "${{ secrets.BROWSER_STACK_USERNAME }}"

- name: Run Coveralls
run: npm run coveralls
if: matrix.node == 10
env:
COVERALLS_REPO_TOKEN: "${{ secrets.COVERALLS_REPO_TOKEN }}"
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Read the [Getting started page](https://getbootstrap.com/docs/4.3/getting-starte

## Status

[![Build Status](https://img.shields.io/travis/twbs/bootstrap/master.svg)](https://travis-ci.org/twbs/bootstrap)
![Build Status](https://action-badges.now.sh/twbs/bootstrap)
[![npm version](https://img.shields.io/npm/v/bootstrap.svg)](https://www.npmjs.com/package/bootstrap)
[![Gem version](https://img.shields.io/gem/v/bootstrap.svg)](https://rubygems.org/gems/bootstrap)
[![Meteor Atmosphere](https://img.shields.io/badge/meteor-twbs%3Abootstrap-blue.svg)](https://atmospherejs.com/twbs/bootstrap)
Expand Down

0 comments on commit a12466a

Please sign in to comment.