diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..1d122a2 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,17 @@ +on: + push: + +jobs: + run: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [ "lts/*", latest] + steps: + - uses: actions/checkout@main + - uses: actions/setup-node@main + with: + node-version: ${{matrix.node-version}} + - run: npm install + - run: bash sample_code_runner.sh + - run: cat output.log \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index fe9ebda..0000000 --- a/.travis.yml +++ /dev/null @@ -1,18 +0,0 @@ -language: node_js -sudo: false - -node_js: - - "6" - - "8" - - "10" - -matrix: - fast_finish: true - -install: - - npm install cybersource-rest-client - - npm install - -script: - - bash sample_code_runner.sh - - cat output.log diff --git a/README.md b/README.md index 643265d..fe7bb82 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,5 @@ # Node.js Sample Code for the CyberSource SDK -[![Build Status](https://app.travis-ci.com/CyberSource/cybersource-rest-samples-node.svg?branch=master)](https://app.travis-ci.com/CyberSource/cybersource-rest-samples-node) - This repository contains working code samples which demonstrate Node.js integration with the CyberSource REST APIs through the [CyberSource Node.JS SDK](https://github.com/CyberSource/cybersource-rest-client-node). The samples are organized into categories and common usage examples.