Skip to content

Commit

Permalink
#36802 github actions and badges
Browse files Browse the repository at this point in the history
  • Loading branch information
mbe1987 committed Jul 9, 2024
1 parent 114e409 commit 2bfc7b3
Show file tree
Hide file tree
Showing 4 changed files with 121 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Audit

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

jobs:
audit:
runs-on: ubuntu-latest

strategy:
matrix:
directory: [
'dhl-commercetools-events',
'dhl-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 }}
39 changes: 39 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build

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

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
directory: [
'dhl-commercetools-events',
'dhl-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: Build project
run: yarn build
working-directory: ${{ matrix.directory }}
39 changes: 39 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Test

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

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
directory: [
'dhl-commercetools-events',
'dhl-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/dhl-commercetools-connector/actions/workflows/build.yml/badge.svg)
![test](https://github.com/mediaopt/dhl-commercetools-connector/actions/workflows/test.yml/badge.svg)
![audit](https://github.com/mediaopt/dhl-commercetools-connector/actions/workflows/audit.yml/badge.svg)

# dhl-commercetools-custom-application

## Introduction
Expand Down

0 comments on commit 2bfc7b3

Please sign in to comment.