Skip to content

Commit

Permalink
refactor(snackpub): update workflow to auto-build required workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
byCedric committed Sep 17, 2023
1 parent 163003d commit 1814169
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/actions/setup-snackpub/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,7 @@ runs:
- name: 📦 Install dependencies
run: yarn install --frozen-lockfile --ignore-scripts
shell: bash

- name: 🛠 Build dependencies
run: yarn turbo build --filter '{./snackpub}^...'
shell: bash
6 changes: 4 additions & 2 deletions .github/workflows/snackpub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ on:
- .eslint*
- .prettier*
- yarn.lock
- turbo.json
push:
branches: [main]
paths:
Expand All @@ -40,6 +41,7 @@ on:
- .eslint*
- .prettier*
- yarn.lock
- turbo.json

jobs:
review:
Expand All @@ -59,8 +61,8 @@ jobs:
- name: 🚨 Lint snackpub
run: yarn lint --max-warnings 0

- name: 🧪 Unit test website
run: yarn test --ci
- name: 🧪 Test snackpub
run: yarn test --ci --maxWorkers 1

build:
if: ${{ github.event_name == 'pull_request' }}
Expand Down

0 comments on commit 1814169

Please sign in to comment.