Skip to content

Commit 5847d14

Browse files
authored
CI: add an Ubuntu LTS job (#3876)
This way we will make sure that any dependency upgrades don't make commitlint lose compatibility with the default version shipped with an LTS version of Ubuntu, starting with 24.04. This is, IMO, important, because AFAIU commitlint lost, some months ago, compatibility with the NodeJS version shipped with Ubuntu 22.04, and thus it requires its users to install NodeJS from external sources, which is a potential security risk (and stability risk because of needing to rely on more bleeding edge versions).
1 parent 7a3d472 commit 5847d14

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/CI.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,30 @@ jobs:
3030

3131
- name: Test
3232
run: yarn test-ci
33+
34+
nodeJsBaselineAptCompatibility:
35+
name: NodeJS installed from stock Ubuntu-LTS packages (not external sources)
36+
runs-on: ubuntu-22.04
37+
container:
38+
image: "ubuntu:24.04"
39+
steps:
40+
- uses: actions/checkout@v4
41+
42+
- name: Install dependencies
43+
run: |
44+
apt update --yes
45+
apt upgrade --yes
46+
47+
# NOTE: do not change the below with an `actions/setup-node` step! or it
48+
# would make this CI job entirely pointless
49+
apt install --yes npm
50+
51+
npm install --global yarn
52+
yarn install
53+
54+
- name: Build
55+
run: yarn build
56+
57+
- name: Run Tests
58+
run: yarn test-ci
59+

0 commit comments

Comments
 (0)