@@ -66,24 +66,53 @@ jobs:
6666 uses : ./.github/actions/npm-setup
6767 with :
6868 runner : ubuntu-22.04
69- node-version : 22 .x
69+ node-version : 24 .x
7070 workspace : " ${{ matrix.module }}"
7171 - name : Code linting
7272 env :
7373 WORKSPACE_PATH : ${{ steps.npm-install.outputs.workspace_path }}
7474 run : npm run lint:ci
7575
76+ compile :
77+ if : ${{ needs.detect-modules.outputs.modules_count > 0 }}
78+ name : Compile
79+ needs :
80+ - detect-modules
81+ - lint
82+ strategy :
83+ fail-fast : false
84+ matrix :
85+ module : ${{ fromJSON(needs.detect-modules.outputs.modules) }}
86+ runs-on : ubuntu-22.04
87+ steps :
88+ - name : Code checkout
89+ uses : actions/checkout@v4
90+ - name : Install Node and Dependencies
91+ id : npm-install
92+ uses : ./.github/actions/npm-setup
93+ with :
94+ runner : ubuntu-22.04
95+ node-version : 24.x
96+ workspace : " ${{ matrix.module }}"
97+ - name : Compile
98+ run : |
99+ npm run build --ignore-scripts --workspace packages/testcontainers -- --project tsconfig.json
100+ if [ "${{ matrix.module }}" != "testcontainers" ]; then
101+ npm run build --ignore-scripts --workspace ${{ steps.npm-install.outputs.workspace_path }} -- --project tsconfig.json --noEmit
102+ fi
103+
76104 smoke-test :
77105 if : ${{ needs.detect-modules.outputs.modules_count > 0 }}
78106 needs :
79107 - detect-modules
80108 - lint
109+ - compile
81110 name : Smoke tests
82111 strategy :
83112 fail-fast : true
84113 matrix :
85114 runner : [ubuntu-22.04]
86- node-version : [18 .x, 20 .x, 22 .x]
115+ node-version : [20 .x, 22 .x, 24 .x]
87116 runs-on : ${{ matrix.runner }}
88117 steps :
89118 - name : Code checkout
@@ -111,12 +140,13 @@ jobs:
111140 needs :
112141 - detect-modules
113142 - lint
143+ - compile
114144 - smoke-test
115145 strategy :
116146 fail-fast : false
117147 matrix :
118148 module : ${{ fromJSON(needs.detect-modules.outputs.modules) }}
119- node-version : [18 .x, 20 .x, 22 .x]
149+ node-version : [20 .x, 22 .x, 24 .x]
120150 uses : ./.github/workflows/test-template.yml
121151 with :
122152 runner : ubuntu-22.04
@@ -130,13 +160,14 @@ jobs:
130160 needs :
131161 - detect-modules
132162 - lint
163+ - compile
133164 - smoke-test
134165 - test
135166 strategy :
136167 fail-fast : false
137168 matrix :
138169 module : ${{ fromJSON(needs.detect-modules.outputs.modules) }}
139- node-version : [18 .x, 20 .x, 22 .x]
170+ node-version : [20 .x, 22 .x, 24 .x]
140171 uses : ./.github/workflows/test-template.yml
141172 with :
142173 runner : ubuntu-22.04
@@ -150,6 +181,7 @@ jobs:
150181 needs :
151182 - detect-modules
152183 - lint
184+ - compile
153185 - smoke-test
154186 - test
155187 - test-podman
0 commit comments