Skip to content

Commit

Permalink
#36574 add badges to README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mbe1987 committed Jul 9, 2024
1 parent 565f0be commit 6de8dfb
Show file tree
Hide file tree
Showing 4 changed files with 86 additions and 10 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Audit

on:
push:
branches:
- main
pull_request:
branches:
- '**'

jobs:
audit:
runs-on: ubuntu-latest

strategy:
matrix:
directory: [
'paypal-commercetools-events',
'paypal-commercetools-extension',
'paypal-commercetools-custom-application'
]

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
cache: 'yarn'
cache-dependency-path: ${{ matrix.directory }}/yarn.lock

- name: Install dependencies
run: yarn
working-directory: ${{ matrix.directory }}

- name: Run audit
run: yarn audit
working-directory: ${{ matrix.directory }}
12 changes: 2 additions & 10 deletions .github/workflows/ci.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: Build

on:
push:
Expand All @@ -9,7 +9,7 @@ on:
- '**'

jobs:
yarn-check:
build:
runs-on: ubuntu-latest

strategy:
Expand Down Expand Up @@ -38,11 +38,3 @@ jobs:
- name: Build project
run: yarn build
working-directory: ${{ matrix.directory }}

- name: Run tests
run: yarn test
working-directory: ${{ matrix.directory }}

- name: Run audit
run: yarn audit
working-directory: ${{ matrix.directory }}
40 changes: 40 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Test

on:
push:
branches:
- main
pull_request:
branches:
- '**'

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
directory: [
'paypal-commercetools-events',
'paypal-commercetools-extension',
'paypal-commercetools-custom-application'
]

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
cache: 'yarn'
cache-dependency-path: ${{ matrix.directory }}/yarn.lock

- name: Install dependencies
run: yarn
working-directory: ${{ matrix.directory }}

- name: Run tests
run: yarn test
working-directory: ${{ matrix.directory }}
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
![build](https://github.com/mediaopt/paypal-commercetools-connector/actions/workflows/build.yml/badge.svg)
![test](https://github.com/mediaopt/paypal-commercetools-connector/actions/workflows/test.yml/badge.svg)
![audit](https://github.com/mediaopt/paypal-commercetools-connector/actions/workflows/audit.yml/badge.svg)

<p style="text-align: center">
<a href="https://commercetools.com/">
<img alt="commercetools logo" src="https://unpkg.com/@commercetools-frontend/assets/logos/commercetools_primary-logo_horizontal_RGB.png">
Expand Down

0 comments on commit 6de8dfb

Please sign in to comment.