From 7cb6bfd5b44d8d523ec63c28647c983a9138a618 Mon Sep 17 00:00:00 2001 From: yelinz Date: Thu, 12 Sep 2024 12:06:00 +0200 Subject: [PATCH 1/2] ci: add production build as test step --- .github/workflows/test.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 0f96012ad..fd3b9dc8e 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -172,3 +172,22 @@ jobs: run: pnpm install --frozen-lockfile - name: Run tests run: pnpm --filter ${{ matrix.workspace }} exec ember try:one ${{ matrix.scenario }} --skip-cleanup + + build: + name: Test production build + needs: [test] + runs-on: [ubuntu-latest] + timeout-minutes: 10 + + steps: + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 + - name: Install Node + uses: actions/setup-node@v4 + with: + node-version: ${{ env.NODE_VERSION }} + cache: pnpm + - name: Install Dependencies + run: pnpm install --frozen-lockfile + - name: Run build + run: pnpm run --filter ember-caluma build From 6abcc99a2ca23b69e6f22616392b57b1ff3ddfa3 Mon Sep 17 00:00:00 2001 From: yelinz Date: Thu, 12 Sep 2024 12:06:12 +0200 Subject: [PATCH 2/2] chore(husky): use corepack --- .husky/commit-msg | 2 +- .husky/pre-commit | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.husky/commit-msg b/.husky/commit-msg index f0b90a252..b93d36eb0 100755 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -2,4 +2,4 @@ [ -n "$CI" ] && exit 0 # lint commit message -pnpm commitlint --edit "$1" +corepack pnpm commitlint --edit "$1" diff --git a/.husky/pre-commit b/.husky/pre-commit index bcfa34a44..ad832f878 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -2,4 +2,4 @@ [ -n "$CI" ] && exit 0 # lint staged files -pnpm lint-staged +corepack pnpm lint-staged