Skip to content

Commit

Permalink
#36588 run ci github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mbe1987 committed Jun 7, 2024
1 parent 21045ee commit 56049ff
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: CI

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

jobs:
yarn-check:
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 }}

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

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

0 comments on commit 56049ff

Please sign in to comment.