Skip to content

Commit c9ded05

Browse files
Remove default images. Min node version 20. Update major deps (#938)
1 parent 1ccbc6d commit c9ded05

File tree

130 files changed

+7381
-6138
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

130 files changed

+7381
-6138
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// Features to add to the dev container. More info: https://containers.dev/features.
99
"features": {
1010
"ghcr.io/devcontainers/features/node:1": {
11-
"version": "18"
11+
"version": "24"
1212
},
1313
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}
1414
},

.github/workflows/npm-publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,21 @@ jobs:
2424
2525
- name: Update versions
2626
run: |
27-
npm version ${{ github.event.release.tag_name }} -ws --allow-same-version
27+
npm version ${{ github.event.release.tag_name }} --ws --allow-same-version
2828
for module in packages/modules/*; do npm install testcontainers@${{ github.event.release.tag_name }} --save -w $module; done
2929
sed -i -E "s/(sonar.projectVersion)=.+/\1=${{ github.event.release.tag_name }}/" sonar-project.properties
3030
3131
- name: Build packages
3232
run: |
3333
npm ci --omit=optional
34-
npm run build -ws
34+
npm run build --ws
3535
3636
- name: Git commit and push
3737
run: |
3838
git commit -am "${{ github.event.release.tag_name }}"
3939
git push
4040
4141
- name: Publish packages to NPM
42-
run: npm publish -ws
42+
run: npm publish --ws
4343
env:
4444
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}

.github/workflows/test.yml

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

.github/workflows/windows-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ jobs:
3131
repository: ${{ github.event.client_payload.pull_request.head.repo.full_name }}
3232
ref: ${{ github.event.client_payload.pull_request.head.ref }}
3333

34-
- name: Install NodeJS 18.x
34+
- name: Install NodeJS
3535
uses: actions/setup-node@v4
3636
with:
37-
node-version: 18.x
37+
node-version: 24.x
3838

3939
- name: Install dependencies
4040
run: npm ci --omit=optional

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v20
1+
v24

LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2018 - 2023 Cristian Greco
3+
Copyright (c) 2018 - 2025 Cristian Greco
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,14 @@ See [LICENSE](https://github.com/testcontainers/testcontainers-node/blob/main/LI
1616

1717
## Copyright
1818

19-
Copyright (c) 2018 - 2023 Cristian Greco and other authors.
19+
Copyright (c) 2018 - 2025 Cristian Greco and other authors.
2020

2121
## Contributing
2222

2323
See [CONTRIBUTING.md](CONTRIBUTING.md) for how to contribute to this repo.
2424

2525
See [contributors](https://github.com/testcontainers/testcontainers-node/graphs/contributors/) for all contributors.
2626

27-
28-
----
27+
---
2928

3029
Join our [Slack workspace](https://slack.testcontainers.org/) | [Testcontainers OSS](https://java.testcontainers.org/) | [Testcontainers Cloud](https://www.testcontainers.cloud/)

0 commit comments

Comments
 (0)