Skip to content

Commit

Permalink
migrate localisation platform middleware into bootstrap saga
Browse files Browse the repository at this point in the history
  • Loading branch information
jancajthaml committed Aug 9, 2024
1 parent b52693a commit 639a88d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 15 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ on:
branches:
- main

jobs:

build:
needs: test
name: Publish to npm
runs-on: ubuntu-latest
steps:
Expand All @@ -17,13 +16,15 @@ jobs:
node-version: 20.11.0
registry-url: https://registry.npmjs.org
scope: "@lastui"
- run: npm ci --no-fund --no-audit
- run: npm run build:dependencies
- run: npm run build:platform
- run: npm run build:bootstrap
- run: npm run postbuild
- run: node ./cli/index.js --cwd=platform test
- run: node ./cli/index.js --cwd=bootstrap test
- name: Restore cached workspace
id: cache
uses: actions/cache/restore@v4
with:
path: |
dependencies/dll
platform/dll
bootstrap/dll
key: ${{ runner.os }}-workspace
- name: Publish @lastui/dependencies
continue-on-error: true
working-directory: dependencies
Expand Down
18 changes: 12 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ on:

jobs:

build:
name: Run Tests and Report Coverage
test:
name: Compile and Test
permissions:
checks: write
pull-requests: write
Expand All @@ -25,10 +25,16 @@ jobs:
scope: "@lastui"
- run: npm ci --no-fund --no-audit
- run: npm run lint -- --debug
- run: npm run build:dependencies
- run: npm run build:platform
- run: npm run build:bootstrap
- run: npm run postbuild
- run: npm run build
- name: Cache workspace
id: cache
uses: actions/cache/save@v4
with:
path: |
dependencies/dll
platform/dll
bootstrap/dll
key: ${{ steps.cache.outputs.cache-primary-key }}
- name: Test package platform
working-directory: platform
run: node ../cli/index.js test
Expand Down

0 comments on commit 639a88d

Please sign in to comment.