From 724d9d8ce5dbf7cae607a61400561b001875c256 Mon Sep 17 00:00:00 2001 From: Niklas Kiefer Date: Thu, 18 Feb 2021 15:14:31 +0100 Subject: [PATCH] chore: migrate CI to GitHub actions --- .github/workflows/CI.yml | 32 ++++++++++++++++++++++++++++++++ .npmignore | 2 +- .travis.yml | 5 ----- README.md | 2 +- 4 files changed, 34 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/CI.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 0000000..8a8b1d7 --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,32 @@ +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 + run: npm run all \ No newline at end of file diff --git a/.npmignore b/.npmignore index c61c8d8..ccaf52c 100644 --- a/.npmignore +++ b/.npmignore @@ -1,3 +1,3 @@ .eslintrc -.travis.yml test +.github diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index cc5f291..0000000 --- a/.travis.yml +++ /dev/null @@ -1,5 +0,0 @@ -language: node_js -node_js: 'node' - -script: - - npm run all \ No newline at end of file diff --git a/README.md b/README.md index f69b146..16847a6 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # zeebe-bpmn-moddle -[![Build Status](https://travis-ci.com/zeebe-io/zeebe-bpmn-moddle.svg)](https://travis-ci.com/zeebe-io/zeebe-bpmn-moddle) +[![CI](https://github.com/zeebe-io/zeebe-bpmn-moddle/workflows/CI/badge.svg)](https://github.com/zeebe-io/zeebe-bpmn-moddle/actions?query=workflow%3ACI) This project defines the [Zeebe](https://zeebe.io) namespace extensions for BPMN 2.0 as a [moddle](https://github.com/bpmn-io/moddle) descriptor.