Skip to content

Commit

Permalink
Switch to GitHub Actions CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Sep 30, 2019
1 parent 7bac0f6 commit 860064c
Show file tree
Hide file tree
Showing 3 changed files with 107 additions and 100 deletions.
99 changes: 0 additions & 99 deletions .circleci/config.yml

This file was deleted.

106 changes: 106 additions & 0 deletions .github/workflows/test.yml
@@ -0,0 +1,106 @@
name: Tests
on: [push, pull_request]

jobs:
test:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
node: [12]
os: [ubuntu-latest]

steps:
- name: Clone repository
uses: actions/checkout@v1
with:
fetch-depth: 3

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

- run: node --version
- run: npm --version
- run: curl --silent https://v4.ifconfig.co/

- name: Install npm dependencies
run: npm ci
env:
CI: true

- name: Run tests with coverage
run: npm run test-with-coverage

- name: Run Coveralls
run: npm run coveralls
if: github.repository == 'MaxCDN/bootstrapcdn' && github.event_name == 'push'
env:
COVERALLS_REPO_TOKEN: "${{ secrets.COVERALLS_REPO_TOKEN }}"
COVERALLS_GIT_BRANCH: "${{ github.ref }}"

test-functional-debug:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
node: [12]
os: [ubuntu-latest]

steps:
- name: Clone repository
uses: actions/checkout@v1
with:
fetch-depth: 3

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

- run: node --version
- run: npm --version
- run: curl --silent https://v4.ifconfig.co/

- name: Install npm dependencies
run: npm ci
env:
CI: true

- name: Run functional tests (debug)
run: npm run mocha:only-functional:dev

test-functional-prod:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
node: [12]
os: [ubuntu-latest]

steps:
- name: Clone repository
uses: actions/checkout@v1
with:
fetch-depth: 3

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

- run: node --version
- run: npm --version
- run: curl --silent https://v4.ifconfig.co/

- name: Install npm dependencies
run: npm ci
env:
CI: true

- name: Run functional tests (production)
run: npm run mocha:only-functional:prod
2 changes: 1 addition & 1 deletion README.md
@@ -1,7 +1,7 @@
# BootstrapCDN

[![Total alerts](https://img.shields.io/lgtm/alerts/g/MaxCDN/bootstrapcdn.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/MaxCDN/bootstrapcdn/alerts/)
[![Build Status](https://img.shields.io/circleci/project/github/MaxCDN/bootstrapcdn/develop.svg?style=flat-square)](https://circleci.com/gh/MaxCDN/bootstrapcdn)
[![Build Status](https://github.com/MaxCDN/bootstrapcdn/workflows/Tests/badge.svg)](https://github.com/MaxCDN/bootstrapcdn/actions)
[![Coverage Status](https://img.shields.io/coveralls/github/MaxCDN/bootstrapcdn/develop.svg?style=flat-square)](https://coveralls.io/github/MaxCDN/bootstrapcdn)
[![dependencies Status](https://img.shields.io/david/MaxCDN/bootstrapcdn.svg?style=flat-square)](https://david-dm.org/MaxCDN/bootstrapcdn)
[![devDependencies Status](https://img.shields.io/david/dev/MaxCDN/bootstrapcdn.svg?style=flat-square)](https://david-dm.org/MaxCDN/bootstrapcdn?type=dev)
Expand Down

0 comments on commit 860064c

Please sign in to comment.