From 6ce9d4ba49a53feffdaf7d2a0bff119a45535540 Mon Sep 17 00:00:00 2001 From: David Liu Date: Thu, 29 Feb 2024 19:04:44 +0800 Subject: [PATCH 1/2] migrate to github action --- .github/workflows/ci.yaml | 17 +++++++++++++++++ .travis.yml | 18 ------------------ 2 files changed, 17 insertions(+), 18 deletions(-) create mode 100644 .github/workflows/ci.yaml delete mode 100644 .travis.yml 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 From 64dc050f5fb0c68e5bc91d2c2d69f5abcfe25607 Mon Sep 17 00:00:00 2001 From: David Liu Date: Thu, 29 Feb 2024 22:40:17 +0800 Subject: [PATCH 2/2] Update README.md --- README.md | 2 -- 1 file changed, 2 deletions(-) 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.