Skip to content

Commit 0c5d21c

Browse files
Samk13Sam Arbidanikachurilova
authored
update axios dependency and update tests (#283)
* chore: update axios and axios-mock-adapter versions in package.json * tests: fix tests * Add TextEncoder, TextDecoder, ReadableStream as globals due to jsdom/jsdom#2524 * Pin `cheerio` due to enzymejs/enzyme#2558 * Add option `--transformIgnorePatterns /\"node_modules/(?!axios)/\"` to instruct jest to transform "node_modules/axios" * chore: bump version to 2.3.1 in package.json * ci: include maint branche & upgrade Ubuntu version * chore: update CI to use Ubuntu 24.04 for testing * dependencies: update axios * closes #278 * chore: fix lint * chore: update ESLint configuration to use eslint-config-invenio * chore: update @babel/runtime peer dependency to version 7.26.10 * chore: update branch pattern and node versions * remove end of life node versions from the matrix * update branch pattern * Add ESLint and React app configuration to package.json * fix the issue when running npm run lint: Oops! Something went wrong! :( ESLint: 6.8.0. ESLint couldn't find the config "react-app" to extend from. Please check that the name of the config is correct. --------- Co-authored-by: Sam Arbid <[email protected]> Co-authored-by: Anika Churilova <[email protected]>
1 parent cb10bb7 commit 0c5d21c

File tree

11 files changed

+16752
-10710
lines changed

11 files changed

+16752
-10710
lines changed

.eslintrc.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
extends:
2-
- '@inveniosoftware/invenio'
3-
- '@inveniosoftware/invenio/prettier'
4-
5-
env:
6-
browser: true
7-
es6: true
8-
jest: true
2+
- "@inveniosoftware/eslint-config-invenio"
3+
- "@inveniosoftware/eslint-config-invenio/prettier"

.github/workflows/js-tests.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
1+
# -*- coding: utf-8 -*-
2+
#
3+
# Copyright (C) 2024 CERN.
4+
# Copyright (C) 2025 KTH Royal Institute of Technology.
5+
16
name: CI
27

38
on:
49
push:
510
branches:
611
- master
12+
- maint-**
713
pull_request:
814
branches:
915
- master
16+
- maint-**
1017
schedule:
1118
# * is a special character in YAML so you have to quote this string
1219
- cron: '0 2 * * 5'
@@ -19,18 +26,18 @@ on:
1926

2027
jobs:
2128
Tests:
22-
runs-on: ubuntu-20.04
29+
runs-on: ubuntu-24.04
2330

2431
strategy:
2532
matrix:
26-
node-version: [14.x, 16.x]
33+
node-version: [22.x]
2734

2835
steps:
2936
- name: Checkout
30-
uses: actions/checkout@v2
37+
uses: actions/checkout@v4
3138

3239
- name: Use Node.js ${{ matrix.node-version }}
33-
uses: actions/setup-node@v1
40+
uses: actions/setup-node@v4
3441
with:
3542
node-version: ${{ matrix.node-version }}
3643

.github/workflows/npm-publish.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# -*- coding: utf-8 -*-
2+
#
3+
# Copyright (C) 2024 CERN.
4+
# Copyright (C) 2025 KTH Royal Institute of Technology.
5+
16
name: Publish
27

38
on:
@@ -7,16 +12,16 @@ on:
712

813
jobs:
914
Publish:
10-
runs-on: ubuntu-20.04
15+
runs-on: ubuntu-24.04
1116

1217
steps:
1318
- name: Checkout
14-
uses: actions/checkout@v1
19+
uses: actions/checkout@v4
1520

1621
- name: Setup Node.js
17-
uses: actions/setup-node@v1
22+
uses: actions/setup-node@v4
1823
with:
19-
node-version: 14
24+
node-version: 22
2025
registry-url: 'https://registry.npmjs.org'
2126

2227
- name: Install and Build

0 commit comments

Comments
 (0)