Skip to content

Commit

Permalink
chore: migrate CI to GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Niklas Kiefer authored and fake-join[bot] committed Mar 22, 2021
1 parent cf7bbf5 commit 757ae6f
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 7 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI
on: [ push, pull_request ]
jobs:
Build:

strategy:
matrix:
os: [ ubuntu-latest ]
node-version: [ 14 ]

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

steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Cache Node.js modules
uses: actions/cache@v2
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
- name: Install dependencies
run: npm ci
- name: Build
env:
COVERAGE: 1
run: npm run all
- name: Upload coverage
run: npx codecov
6 changes: 0 additions & 6 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
@@ -1,6 +1,6 @@
# json-schema-validator

[![Build Status](https://travis-ci.com/bpmn-io/json-schema-validator.svg?branch=main)](https://travis-ci.com/bpmn-io/json-schema-validator)
[![CI](https://github.com/bpmn-io/json-schema-validator/workflows/CI/badge.svg)](https://github.com/bpmn-io/json-schema-validator/actions?query=workflow%3ACI)

Validate JSON based on [JSON Schema](https://json-schema.org/) files.

Expand Down

0 comments on commit 757ae6f

Please sign in to comment.