diff --git a/.github/workflows/build-3ds2.yml b/.github/workflows/build-3ds2.yml new file mode 100644 index 0000000..81267bf --- /dev/null +++ b/.github/workflows/build-3ds2.yml @@ -0,0 +1,40 @@ +name: Build 3DS2 + +on: + workflow_dispatch: + push: + branches: [ main ] + paths: + - '3ds2-example/**' + pull_request: + branches: [ main ] + paths: + - '3ds2-example/**' + +jobs: + build-3ds2: + + runs-on: ubuntu-latest + defaults: + run: + working-directory: '3ds2-example' + strategy: + matrix: + node-version: [18.x] + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + cache-dependency-path: '3ds2-example' + - name: Build 3ds-example/frontend + run: npm install + working-directory: 3ds2-example/frontend + - name: Build 3ds2-example/backend + run: npm install + working-directory: 3ds2-example/backend + - name: Build 3ds2-example + run: npm install + working-directory: 3ds2-example diff --git a/.github/workflows/build-authorisation-adjustment.yml b/.github/workflows/build-authorisation-adjustment.yml new file mode 100644 index 0000000..39e459a --- /dev/null +++ b/.github/workflows/build-authorisation-adjustment.yml @@ -0,0 +1,33 @@ +name: Build Authorisation Adjustment + +on: + workflow_dispatch: + push: + branches: [ main ] + paths: + - 'authorisation-adjustment-example/**' + pull_request: + branches: [ main ] + paths: + - 'authorisation-adjustment-example/**' + +jobs: + build-authorisation-adjustment: + + runs-on: ubuntu-latest + defaults: + run: + working-directory: 'authorisation-adjustment-example' + strategy: + matrix: + node-version: [18.x] + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + cache-dependency-path: 'authorisation-adjustment-example' + - name: Build authorisation-adjustment-example + run: npm install diff --git a/.github/workflows/build-checkout-advanced.yml b/.github/workflows/build-checkout-advanced.yml new file mode 100644 index 0000000..ef0d73c --- /dev/null +++ b/.github/workflows/build-checkout-advanced.yml @@ -0,0 +1,33 @@ +name: Build Checkout Advanced + +on: + workflow_dispatch: + push: + branches: [ main ] + paths: + - 'checkout-example-advanced/**' + pull_request: + branches: [ main ] + paths: + - 'checkout-example-advanced/**' + +jobs: + build-checkout-advanced: + + runs-on: ubuntu-latest + defaults: + run: + working-directory: 'checkout-example-advanced' + strategy: + matrix: + node-version: [18.x] + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + cache-dependency-path: 'checkout-example-advanced' + - name: Build checkout-example-advanced + run: npm install diff --git a/.github/workflows/build-checkout.yml b/.github/workflows/build-checkout.yml new file mode 100644 index 0000000..af02156 --- /dev/null +++ b/.github/workflows/build-checkout.yml @@ -0,0 +1,33 @@ +name: Build Checkout + +on: + workflow_dispatch: + push: + branches: [ main ] + paths: + - 'checkout-example/**' + pull_request: + branches: [ main ] + paths: + - 'checkout-example/**' + +jobs: + build-checkout: + + runs-on: ubuntu-latest + defaults: + run: + working-directory: 'checkout-example' + strategy: + matrix: + node-version: [18.x] + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + cache-dependency-path: 'checkout-example' + - name: Build checkout-example + run: npm install diff --git a/.github/workflows/build-giftcard.yml b/.github/workflows/build-giftcard.yml new file mode 100644 index 0000000..4a6e4e6 --- /dev/null +++ b/.github/workflows/build-giftcard.yml @@ -0,0 +1,33 @@ +name: Build Giftcard + +on: + workflow_dispatch: + push: + branches: [ main ] + paths: + - 'giftcard-example/**' + pull_request: + branches: [ main ] + paths: + - 'giftcard-example/**' + +jobs: + build-giftcard: + + runs-on: ubuntu-latest + defaults: + run: + working-directory: 'giftcard-example' + strategy: + matrix: + node-version: [18.x] + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + cache-dependency-path: 'giftcard-example' + - name: Build giftcard-example + run: npm install diff --git a/.github/workflows/build-giving.yml b/.github/workflows/build-giving.yml new file mode 100644 index 0000000..345a15c --- /dev/null +++ b/.github/workflows/build-giving.yml @@ -0,0 +1,33 @@ +name: Build Giving + +on: + workflow_dispatch: + push: + branches: [ main ] + paths: + - 'giving-example/**' + pull_request: + branches: [ main ] + paths: + - 'giving-example/**' + +jobs: + build-giving: + + runs-on: ubuntu-latest + defaults: + run: + working-directory: 'giving-example' + strategy: + matrix: + node-version: [18.x] + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + cache-dependency-path: 'giving-example' + - name: Build giving-example + run: npm install diff --git a/.github/workflows/build-in-person-payments.yml b/.github/workflows/build-in-person-payments.yml new file mode 100644 index 0000000..454d86c --- /dev/null +++ b/.github/workflows/build-in-person-payments.yml @@ -0,0 +1,33 @@ +name: Build In-Person Payments + +on: + workflow_dispatch: + push: + branches: [ main ] + paths: + - 'in-person-payments-example/**' + pull_request: + branches: [ main ] + paths: + - 'in-person-payments-example/**' + +jobs: + build-in-person-payments: + + runs-on: ubuntu-latest + defaults: + run: + working-directory: 'in-person-payments-example' + strategy: + matrix: + node-version: [18.x] + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + cache-dependency-path: 'in-person-payments-example' + - name: Build in-person-payments-example + run: npm install diff --git a/.github/workflows/build-paybylink.yml b/.github/workflows/build-paybylink.yml new file mode 100644 index 0000000..b23a77a --- /dev/null +++ b/.github/workflows/build-paybylink.yml @@ -0,0 +1,33 @@ +name: Build PayByLink + +on: + workflow_dispatch: + push: + branches: [ main ] + paths: + - 'paybylink-example/**' + pull_request: + branches: [ main ] + paths: + - 'paybylink-example/**' + +jobs: + build-paybylink: + + runs-on: ubuntu-latest + defaults: + run: + working-directory: 'paybylink-example' + strategy: + matrix: + node-version: [18.x] + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + cache-dependency-path: 'paybylink-example' + - name: Build paybylink-example + run: npm install diff --git a/.github/workflows/build-subscription.yml b/.github/workflows/build-subscription.yml new file mode 100644 index 0000000..2a12593 --- /dev/null +++ b/.github/workflows/build-subscription.yml @@ -0,0 +1,33 @@ +name: Build Subscription + +on: + workflow_dispatch: + push: + branches: [ main ] + paths: + - 'subscription-example/**' + pull_request: + branches: [ main ] + paths: + - 'subscription-example/**' + +jobs: + build-paybylink: + + runs-on: ubuntu-latest + defaults: + run: + working-directory: 'subscription-example' + strategy: + matrix: + node-version: [18.x] + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + cache-dependency-path: 'subscription-example' + - name: Build subscription-example + run: npm install diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index 6f332eb..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,185 +0,0 @@ -name: Node.js CI - -on: - push: - branches: [ main ] - paths-ignore: - - '**/README.md' - - .gitignore - - .gitpod.yml - - LICENSE - pull_request: - branches: [ main ] - paths-ignore: - - '**/README.md' - - .gitignore - - .gitpod.yml - - LICENSE - -jobs: - build-checkout: - - runs-on: ubuntu-latest - defaults: - run: - working-directory: 'checkout-example' - strategy: - matrix: - node-version: [18.x] - steps: - - uses: actions/checkout@v3 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - cache: 'npm' - cache-dependency-path: 'checkout-example' - - name: Build checkout-example - run: npm install - - build-checkout-advanced: - - runs-on: ubuntu-latest - defaults: - run: - working-directory: 'checkout-example-advanced' - strategy: - matrix: - node-version: [18.x] - steps: - - uses: actions/checkout@v3 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - cache: 'npm' - cache-dependency-path: 'checkout-example-advanced' - - name: Build checkout-example-advanced - run: npm install - - build-giftcard: - - runs-on: ubuntu-latest - defaults: - run: - working-directory: 'giftcard-example' - strategy: - matrix: - node-version: [18.x] - steps: - - uses: actions/checkout@v3 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - cache: 'npm' - cache-dependency-path: 'giftcard-example' - - name: Build giftcard-example - run: npm install - - build-paybylink: - - runs-on: ubuntu-latest - defaults: - run: - working-directory: 'paybylink-example' - strategy: - matrix: - node-version: [18.x] - steps: - - uses: actions/checkout@v3 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - cache: 'npm' - cache-dependency-path: 'paybylink-example' - - name: Build paybylink-example - run: npm install - - build-subscription: - - runs-on: ubuntu-latest - defaults: - run: - working-directory: 'subscription-example' - strategy: - matrix: - node-version: [18.x] - steps: - - uses: actions/checkout@v3 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - cache: 'npm' - cache-dependency-path: 'subscription-example' - - name: Build subscription-example - run: npm install - - build-giving: - - runs-on: ubuntu-latest - defaults: - run: - working-directory: 'giving-example' - strategy: - matrix: - node-version: [18.x] - steps: - - uses: actions/checkout@v3 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - cache: 'npm' - cache-dependency-path: 'giving-example' - - name: Build giving-example - run: npm install - - build-in-person-payments: - - runs-on: ubuntu-latest - defaults: - run: - working-directory: 'in-person-payments-example' - strategy: - matrix: - node-version: [18.x] - steps: - - uses: actions/checkout@v3 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - cache: 'npm' - cache-dependency-path: 'in-person-payments-example' - - name: Build in-person-payments-example - run: npm install - - build-3ds2: - - runs-on: ubuntu-latest - defaults: - run: - working-directory: '3ds2-example' - strategy: - matrix: - node-version: [18.x] - steps: - - uses: actions/checkout@v3 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - cache: 'npm' - cache-dependency-path: '3ds2-example' - - name: Build 3ds-example/frontend - run: npm install - working-directory: 3ds2-example/frontend - - name: Build 3ds2-example/backend - run: npm install - working-directory: 3ds2-example/backend - - name: Build 3ds2-example - run: npm install - working-directory: 3ds2-example