Skip to content

Commit

Permalink
[ci] Use GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
lpinca committed Nov 27, 2020
1 parent 2ba2297 commit c949c7d
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 15 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: CI

on:
- push
- pull_request

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node:
- 10
- 12
- 14
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- run: npm install
- run: npm test
- uses: coverallsapp/[email protected]
if: matrix.node == 14
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Shopify API Node.js (Official module)

[![Version npm][npm-shopify-api-node-badge]][npm-shopify-api-node]
[![Build Status][travis-shopify-api-node-badge]][travis-shopify-api-node]
[![Build Status][ci-shopify-api-node-badge]][ci-shopify-api-node]
[![Dependencies][david-shopify-api-node-badge]][david-shopify-api-node]
[![Coverage Status][coverage-shopify-api-node-badge]][coverage-shopify-api-node]

Expand Down Expand Up @@ -702,9 +702,10 @@ Used in our live products: [MoonMail][moonmail] & [MONEI][monei]
https://github.com/Shopify/shopify-node-app
[npm-shopify-api-node-badge]: https://img.shields.io/npm/v/shopify-api-node.svg
[npm-shopify-api-node]: https://www.npmjs.com/package/shopify-api-node
[travis-shopify-api-node-badge]:
https://img.shields.io/travis/MONEI/Shopify-api-node/master.svg
[travis-shopify-api-node]: https://travis-ci.org/MONEI/Shopify-api-node
[ci-shopify-api-node-badge]:
https://img.shields.io/github/workflow/status/MONEI/Shopify-api-node/CI/master?label=CI
[ci-shopify-api-node]:
https://github.com/MONEI/Shopify-api-node/actions?query=workflow%3ACI+branch%3Amaster
[david-shopify-api-node-badge]:
https://img.shields.io/david/MONEI/Shopify-api-node.svg
[david-shopify-api-node]: https://david-dm.org/MONEI/Shopify-api-node
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"devDependencies": {
"c8": "^7.3.0",
"chai": "^4.1.2",
"coveralls": "^3.0.9",
"eslint": "^7.0.0",
"eslint-config-prettier": "^6.7.0",
"eslint-plugin-prettier": "^3.1.2",
Expand All @@ -35,7 +34,7 @@
"prettier": "^2.0.2"
},
"scripts": {
"test": "npm run lint && c8 --reporter=html --reporter=text mocha",
"test": "npm run lint && c8 --reporter=lcov --reporter=text mocha",
"watch": "mocha -w",
"lint": "eslint --ignore-path .gitignore . && prettier --check --ignore-path .gitignore \"**/*.{json,md,ts,yaml,yml}\""
},
Expand Down

0 comments on commit c949c7d

Please sign in to comment.