Skip to content
This repository has been archived by the owner on Sep 15, 2020. It is now read-only.

Commit

Permalink
Switch to GitHub Actions CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Apr 6, 2020
1 parent 5de51f6 commit 8d412bc
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 62 deletions.
31 changes: 0 additions & 31 deletions .appveyor.yml

This file was deleted.

69 changes: 69 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: CI

on: [push, pull_request]

env:
CI: true
NODE: 12.x
RUBY: 2.6.x

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

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]

steps:
- name: Clone repository
uses: actions/checkout@v2

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

- name: Set up Ruby
uses: actions/setup-ruby@v1
with:
ruby-version: ${{ env.RUBY }}

- name: Disable gem docs
run: 'echo "gem: --no-document" > ~/.gemrc'

- name: Set up Ruby cache
uses: actions/cache@v1
with:
path: vendor/bundle
key: ${{ runner.os }}-ruby-v${{ env.RUBY }}-${{ hashFiles('Gemfile') }}-${{ hashFiles('Gemfile.lock') }}-${{ hashFiles('.github/workflows/ci.yml') }}
restore-keys: |
${{ runner.os }}-ruby-v${{ env.RUBY }}-${{ hashFiles('Gemfile') }}-${{ hashFiles('Gemfile.lock') }}-${{ hashFiles('.github/workflows/ci.yml') }}
- name: Set up npm cache
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}-${{ hashFiles('.github/workflows/ci.yml') }}
restore-keys: |
${{ runner.OS }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}-${{ hashFiles('.github/workflows/ci.yml') }}
- name: Set up Bundler
run: gem install bundler -v "~> 1.17"

- run: ruby --version
- run: gem --version
- run: bundle --version
- run: node --version
- run: npm --version
- run: java -version

- name: Install npm dependencies
run: npm ci

- name: Install bundler dependencies
run: bundle install --deployment --jobs=4 --retry=3 --clean

- name: Run tests
run: npm test
29 changes: 0 additions & 29 deletions .travis.yml

This file was deleted.

3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# The source code of <https://mpc-hc.org/>

[![Linux Build Status](https://img.shields.io/travis/mpc-hc/mpc-hc.org/master.svg?label=Linux%20build)](https://travis-ci.org/mpc-hc/mpc-hc.org)
[![Windows Build Status](https://img.shields.io/appveyor/ci/XhmikosR/mpc-hc-org/master.svg?label=Windows%20build)](https://ci.appveyor.com/project/XhmikosR/mpc-hc-org/branch/master)
[![Build Status](https://github.com/mpc-hc/mpc-hc.org/workflows/CI/badge.svg)](https://github.com/mpc-hc/mpc-hc.org/actions?workflow=CI)
[![devDependencies Status](https://img.shields.io/david/dev/mpc-hc/mpc-hc.org.svg)](https://david-dm.org/mpc-hc/mpc-hc.org?type=dev)

## Getting started
Expand Down

0 comments on commit 8d412bc

Please sign in to comment.