Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .bundlemonrc.integration.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"files": [
{
"friendlyName": "Main bundles",
"path": "./**/dist-integration/main.<hash>.js",
"path": "./**/dist-integration/**/main{-,.}<hash>.js",
"maxPercentIncrease": 1
},
{
"friendlyName": "Main bundles(Gzip)",
"path": "./**/dist-integration/main.<hash>.js",
"path": "./**/dist-integration/**/main{-,.}<hash>.js",
"compression": "gzip",
"maxPercentIncrease": 1
}
Expand Down
15 changes: 5 additions & 10 deletions .github/actions/download-integration-test-artifacts/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# - ./.github/actions/download-integration-test-artifacts

name: download-integration-test-artifact
description: Downloads all integration test artifacts with names such as 'hello-world-ng16'.
description: Downloads all integration test artifacts with names such as 'hello-world-*'.

inputs:
path:
Expand All @@ -18,15 +18,10 @@ inputs:
runs:
using: 'composite'
steps:
- name: Download hello-world-ng16 artifacts
uses: actions/download-artifact@v3
- name: Download hello-world-* artifacts
uses: actions/download-artifact@v4
with:
name: hello-world-ng16
path: ${{ inputs.path }}

- name: Download hello-world-ng17 artifacts
uses: actions/download-artifact@v3
with:
name: hello-world-ng17
pattern: hello-world-*
path: ${{ inputs.path }}
merge-multiple: true

14 changes: 12 additions & 2 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,21 @@ runs:
run: unset HISTFILE

- name: Use Node.js ${{ inputs.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
registry-url: https://registry.npmjs.org
check-latest: true
cache: 'yarn'

- name: Configure kernel (increase watchers)
shell: bash
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

- name: Workspace cache
uses: actions/cache@v3
# Skip the workspace cache, because it might be slowing things down. Using setup-node action above instead
if: false
uses: actions/cache@v4
id: workspace-cache
env:
cache-name: workspace-cache
Expand All @@ -61,6 +64,13 @@ runs:
${{ runner.os }}-node-${{ inputs.node-version }}-yarn-
${{ runner.os }}-

- name: Download ngxs build artifacts
uses: actions/download-artifact@v4
with:
name: ngxs-build
path: ./@ngxs
continue-on-error: true

- name: Install project dependencies
shell: bash
run: yarn install --frozen-lockfile --non-interactive
4 changes: 2 additions & 2 deletions .github/actions/upload-integration-test-artifact/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ runs:
SCRIPT: ${{ inputs.script }}

- name: Upload ${{ inputs.script }} artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ steps.artifact-name.outputs.value }}
path: ./integrations/**/dist-integration/main.*.js
path: ./integrations/**/dist-integration/**/main*.js
retention-days: 1
15 changes: 11 additions & 4 deletions .github/workflows/pr-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
Expand All @@ -40,6 +40,13 @@ jobs:
- name: Build NGXS
run: yarn build

- name: Upload Build Artifacts
uses: actions/upload-artifact@v4
with:
name: ngxs-build
path: ./@ngxs
retention-days: 1

premerge-test:
runs-on: ubuntu-latest
needs: premerge-build
Expand All @@ -50,7 +57,7 @@ jobs:

steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
Expand Down Expand Up @@ -90,7 +97,7 @@ jobs:

steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
Expand Down Expand Up @@ -118,7 +125,7 @@ jobs:

steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
Expand Down
17 changes: 12 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup
uses: ./.github/actions/setup
Expand All @@ -38,6 +38,13 @@ jobs:
- name: Build NGXS
run: yarn build

- name: Upload Build Artifacts
uses: actions/upload-artifact@v4
with:
name: ngxs-build
path: ./@ngxs
retention-days: 1

release-test:
runs-on: ubuntu-latest
needs: release-build
Expand All @@ -48,7 +55,7 @@ jobs:

steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup
uses: ./.github/actions/setup
Expand Down Expand Up @@ -85,7 +92,7 @@ jobs:

steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup
uses: ./.github/actions/setup
Expand All @@ -110,7 +117,7 @@ jobs:

steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup
uses: ./.github/actions/setup
Expand All @@ -136,7 +143,7 @@ jobs:

steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup
uses: ./.github/actions/setup
Expand Down
17 changes: 12 additions & 5 deletions .github/workflows/trunk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup
uses: ./.github/actions/setup
Expand All @@ -38,6 +38,13 @@ jobs:
- name: Build NGXS
run: yarn build

- name: Upload Build Artifacts
uses: actions/upload-artifact@v4
with:
name: ngxs-build
path: ./@ngxs
retention-days: 1

trunk-test:
runs-on: ubuntu-latest
needs: trunk-build
Expand All @@ -48,7 +55,7 @@ jobs:

steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup
uses: ./.github/actions/setup
Expand Down Expand Up @@ -85,7 +92,7 @@ jobs:

steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup
uses: ./.github/actions/setup
Expand All @@ -110,7 +117,7 @@ jobs:

steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup
uses: ./.github/actions/setup
Expand Down Expand Up @@ -138,7 +145,7 @@ jobs:

# steps:
# - name: Checkout sources
# uses: actions/checkout@v3
# uses: actions/checkout@v4

# - name: Setup
# uses: ./.github/actions/setup
Expand Down