Merge pull request #11 from commercetools/fix-unit-test-stub-config #96
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push] | |
jobs: | |
build-tax-calculator: | |
name: Build the application for tax-calculator | |
runs-on: ubuntu-latest | |
env: | |
CTP_CLIENT_ID: ${{ secrets.CTP_CLIENT_ID }} | |
CTP_CLIENT_SECRET: ${{ secrets.CTP_CLIENT_SECRET }} | |
CTP_PROJECT_KEY: ${{ secrets.CTP_PROJECT_KEY }} | |
CTP_SCOPE: ${{ secrets.CTP_SCOPE }} | |
CTP_REGION: ${{ secrets.CTP_REGION }} | |
defaults: | |
run: | |
working-directory: tax-calculator | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Use Node.js 16.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16.x' | |
- name: Install modules | |
run: npm ci | |
- name: Check the coding style | |
run: npm run lint && npm run prettier | |
- name: Execute unit tests | |
run: npm run test:unit | |
build-order-syncer: | |
name: Build the application for order-syncer | |
runs-on: ubuntu-latest | |
env: | |
CTP_CLIENT_ID: ${{ secrets.CTP_CLIENT_ID }} | |
CTP_CLIENT_SECRET: ${{ secrets.CTP_CLIENT_SECRET }} | |
CTP_PROJECT_KEY: ${{ secrets.CTP_PROJECT_KEY }} | |
CTP_SCOPE: ${{ secrets.CTP_SCOPE }} | |
CTP_REGION: ${{ secrets.CTP_REGION }} | |
defaults: | |
run: | |
working-directory: order-syncer | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Use Node.js 16.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16.x' | |
- name: Install modules | |
run: npm ci | |
- name: Check the coding style | |
run: npm run lint && npm run prettier | |
- name: Execute tests | |
run: npm run test:ci |