Skip to content

Commit

Permalink
chore: add build step
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOrangePuff committed Oct 25, 2024
1 parent 27c535f commit 5cf671c
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build

on:
workflow_call:

jobs:
build:
name: 🏭 Build all packages
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 1

- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'yarn'

- name: Install
run: yarn install

- name: Build all packages
run: yarn nx run-many -t build

- name: Build Docker Container
run: yarn nx docker-build ${inputs.application}

- name: Build and export
uses: docker/build-push-action@v6
with:
tags: ${inputs.application}:latest
outputs: type=docker,dest=/tmp/${inputs.application}.tar
11 changes: 11 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,14 @@ jobs:
yarn nx affected:lint --base=$DESTINATION_BRANCH --parallel --max-parallel=3
yarn nx format:check --base=$DESTINATION_BRANCH --parallel --max-parallel=3
yarn nx affected -t check-types --base=$DESTINATION_BRANCH --parallel --max-parallel=3
build:
name: 👷 Build
strategy:
matrix:
application: ['bigcommerce-mesh', 'orocommerce-mesh']
runs-on: ubuntu-latest
steps:
- uses: ./.github/workflows/build.yml
with:
application: ${{ matrix.application }}

0 comments on commit 5cf671c

Please sign in to comment.