Skip to content

Commit 0f38863

Browse files
authored
Update GitHub Actions workflows (#20)
Update and modernize the GitHub Actions workflows that are run within this repo.
2 parents a7056e4 + 43aa4e4 commit 0f38863

7 files changed

Lines changed: 79 additions & 95 deletions

File tree

.github/dependabot.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,26 @@ jobs:
1515

1616
strategy:
1717
matrix:
18-
node-version: [15.x]
18+
node-version: [22.x]
1919
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2020

2121
steps:
22-
- uses: actions/checkout@v2
22+
- name: Checkout repository
23+
uses: actions/checkout@v4
2324
- name: Use Node.js ${{ matrix.node-version }}
24-
uses: actions/setup-node@v1
25+
uses: actions/setup-node@v4
2526
with:
2627
node-version: ${{ matrix.node-version }}
27-
- run: npm ci
28-
# - run: npm run build --if-present
29-
- run: npm test --if-present
28+
- name: Cache Node.js modules
29+
uses: actions/cache@v4
30+
with:
31+
path: ~/.npm
32+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
33+
restore-keys: |
34+
${{ runner.os }}-node-
35+
- name: Check installs
36+
run: npm ci
37+
- name: Quality check - prettier
38+
run: npm run prettier:check
39+
- name: Quality check - eslint
40+
run: npm run eslint:check

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ jobs:
3333

3434
steps:
3535
- name: Checkout repository
36-
uses: actions/checkout@v2
36+
uses: actions/checkout@v4
3737

3838
# Initializes the CodeQL tools for scanning.
3939
- name: Initialize CodeQL
40-
uses: github/codeql-action/init@v2
40+
uses: github/codeql-action/init@v3
4141
with:
4242
languages: ${{ matrix.language }}
4343
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -48,7 +48,7 @@ jobs:
4848
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
4949
# If this step fails, then you should remove it and run the build manually (see below)
5050
- name: Autobuild
51-
uses: github/codeql-action/autobuild@v2
51+
uses: github/codeql-action/autobuild@v3
5252

5353
# ℹ️ Command-line programs to run using the OS shell.
5454
# 📚 https://git.io/JvXDl
@@ -62,4 +62,4 @@ jobs:
6262
# make release
6363

6464
- name: Perform CodeQL Analysis
65-
uses: github/codeql-action/analyze@v2
65+
uses: github/codeql-action/analyze@v3
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525

2626
steps:
2727
- name: Checkout repository
28-
uses: actions/checkout@v3
28+
uses: actions/checkout@v4
2929

3030
# Ensure a compatible version of dotnet is installed.
3131
# The [Microsoft Security Code Analysis CLI](https://aka.ms/mscadocs) is built with dotnet v3.1.201.
@@ -43,6 +43,6 @@ jobs:
4343

4444
# Upload results to the Security tab
4545
- name: Upload OSSAR results
46-
uses: github/codeql-action/upload-sarif@v2
46+
uses: github/codeql-action/upload-sarif@v3
4747
with:
4848
sarif_file: ${{ steps.ossar.outputs.sarifFile }}

CHANGELOG.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,26 @@ To see tags and releases, please go to [Tags](https://github.com/BioAnalyticReso
1010

1111
Optimization:
1212

13-
- Addressed client-side caching for faster loading
14-
- Improved performance of mouse hover listeners
15-
- Optimized images
13+
- Addressed client-side caching for faster loading
14+
- Improved performance of mouse hover listeners
15+
- Optimized images
1616

1717
Update:
1818

19-
- Added ESLint
20-
- No longer supporting Internet Explorer
21-
- Updated packages
19+
- Added ESLint
20+
- No longer supporting Internet Explorer
21+
- Updated packages
2222

2323
Documentation:
2424

25-
- Fixed links in markdown files
26-
- Updated README's examples
25+
- Fixed links in markdown files
26+
- Updated README's examples
2727

2828
Bug fix:
2929

30-
- Fixed `localStorage` failing to initialize and store/call data
31-
- Fixed issue where cannot call `generateSVG`
32-
- Fixed issue with favicons, now uses BAR's favicon over local (same for web manifest)
30+
- Fixed `localStorage` failing to initialize and store/call data
31+
- Fixed issue where cannot call `generateSVG`
32+
- Fixed issue with favicons, now uses BAR's favicon over local (same for web manifest)
3333

3434
## [1.0.19] - 2022-11-03
3535

package-lock.json

Lines changed: 40 additions & 57 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"contributors": [
44
{
55
"name": "Alexander Sullivan",
6-
"email": "alexander.j.sullivan@hotmail.com",
6+
"email": "alexjsully.connect@outlook.com",
77
"url": "https://alexjsully.me/"
88
},
99
{
@@ -31,11 +31,12 @@
3131
},
3232
"main": "tissueExpressionBAR.js",
3333
"scripts": {
34-
"eslint": "eslint --fix ./ --ignore-path .prettierignore",
34+
"audit:fix": "npm i && npm audit fix",
3535
"eslint:check": "eslint ./ --ignore-path .prettierignore",
36-
"pre-commit": "npm run prettier && npm run eslint",
36+
"eslint": "eslint --fix ./ --ignore-path .prettierignore",
37+
"prettier:check": "prettier --check ./",
3738
"prettier": "prettier --write ./",
38-
"prettier:check": "prettier --check ./"
39+
"validate": "npm run prettier && npm run eslint"
3940
},
4041
"directories": {
4142
"example": "example"

0 commit comments

Comments
 (0)