Skip to content

Commit 7ff7ded

Browse files
authored
Merge pull request #93 from AuthorizeNet/future
Future
2 parents bd15ff9 + cad109e commit 7ff7ded

15 files changed

Lines changed: 3125 additions & 2643 deletions
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: Authorize.net Node.js CI
2+
on:
3+
push:
4+
pull_request:
5+
workflow_dispatch:
6+
env:
7+
sdk_node: 'sdk-node'
8+
sample_code_node: 'sample-code-node'
9+
local_npm_folder: 'local-npm-folder'
10+
jobs:
11+
workflow-job:
12+
defaults:
13+
run:
14+
shell: bash
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
operating-system: [ubuntu-latest, macos-latest, windows-latest]
19+
node-ver: [14.x, 16.x, 17.x, 18.x, 19.x, 20.x, 21.x, 22.x]
20+
exclude:
21+
- operating-system: macos-latest
22+
node-ver: 14.x
23+
include:
24+
- operating-system: macos-13
25+
node-ver: 14.x
26+
runs-on: ${{matrix.operating-system}}
27+
steps:
28+
- name: Creating separate folders for SDK and Sample Codes
29+
run: |
30+
rm -rf $sdk_node
31+
rm -rf $sample_code_node
32+
mkdir $sdk_node $sample_code_node
33+
34+
- name: Checkout authorizenet/sdk-node
35+
uses: actions/checkout@v4
36+
with:
37+
path: ${{env.sdk_node}}
38+
39+
- name: Checkout authorizenet/sample-code-node
40+
uses: actions/checkout@v4
41+
with:
42+
repository: 'authorizenet/sample-code-node'
43+
ref: 'future'
44+
path: ${{env.sample_code_node}}
45+
46+
- name: Install Node
47+
uses: actions/setup-node@v4
48+
with:
49+
node-version: ${{matrix.node-ver}}
50+
51+
- name: Install and Test
52+
run: |
53+
cd $sdk_node
54+
npm install
55+
npm test
56+
57+
npm pack
58+
PACKAGE_VERSION=$(grep '"version"' package.json | cut -d '"' -f 4 | head -n 1)
59+
cd ../$sample_code_node
60+
npm install
61+
npm install file:../$sdk_node/authorizenet-$PACKAGE_VERSION.tgz
62+
if [[ ${{matrix.node-ver}} = 14* ]]; then
63+
npm install ajv@5.5.2
64+
fi
65+
npm list
66+
node test-runner.js
67+

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Authorize.Net Node.js SDK
22

3-
[![Travis CI Status](https://travis-ci.org/AuthorizeNet/sdk-node.svg?branch=master)](https://travis-ci.org/AuthorizeNet/sdk-node)
3+
[![Authorize.net Node.js CI](https://github.com/AuthorizeNet/sdk-node/actions/workflows/nodejs-workflow.yml/badge.svg?branch=master)](https://github.com/AuthorizeNet/sdk-node/actions/workflows/nodejs-workflow.yml)
44
[![NPM version](https://badge.fury.io/js/authorizenet.png)](http://badge.fury.io/js/authorizenet)
55

66

77
## Requirements
8-
* Node.js version 10.0.0 or higher
8+
* Node.js version 14.x.x or higher
99
* An Authorize.Net account (see _Registration & Configuration_ section below)
1010

1111
### Contribution

0 commit comments

Comments
 (0)