Skip to content

Commit 6213939

Browse files
authored
v4.0.0 - Update to actions v4 (#8)
* Update packages * Update lint action * Bump package version to v4 * Use node20 * Update readme versions * Update dist
1 parent 0a24811 commit 6213939

File tree

9 files changed

+127800
-15850
lines changed

9 files changed

+127800
-15850
lines changed

.github/workflows/main.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: "Lint"
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- main
7+
- 'releases/*'
8+
9+
jobs:
10+
lint:
11+
name: Lint job
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Git checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Setup Node
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: '20'
21+
22+
- name: Upgrade NPM
23+
run: npm install -g npm@9
24+
25+
- name: Restore node_modules
26+
uses: actions/cache@v4
27+
id: node_modules_cache
28+
with:
29+
path: node_modules
30+
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/package-lock.json') }}
31+
32+
- name: Restore npm cache (if necessary)
33+
if: steps.node_modules_cache.outputs.cache-hit != 'true'
34+
uses: actions/cache@v4
35+
with:
36+
path: ~/.npm
37+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
38+
restore-keys: |
39+
${{ runner.os }}-node-
40+
41+
- name: Install Node modules (if necessary)
42+
if: steps.node_modules_cache.outputs.cache-hit != 'true'
43+
run: npm ci
44+
45+
- run: npm run lint

.github/workflows/test.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The line numbers are obtained by parsing the patch chunks of each file given by
66

77
The coverage is obtained from an artifact previously uploaded. It must be an artifact named `coverageArtifact` containing the file `coverage-final.json`.
88

9-
NOTE: Requires having used `actions/checkout@v3` in a previous step.
9+
NOTE: Requires having used `actions/checkout@v4` in a previous step.
1010

1111
## Inputs
1212

@@ -37,9 +37,9 @@ jobs:
3737
example:
3838
runs-on: ubuntu-latest
3939
steps:
40-
- uses: actions/checkout@v3
40+
- uses: actions/checkout@v4
4141
- name: Check coverage
42-
uses: Equip-Collaboration/diff-coverage@v1
42+
uses: Equip-Collaboration/diff-coverage@v4
4343
with:
4444
include: '["\\.js$", "\\.jsx$"]'
4545
ignore: '["^dist/", "\\.test\\.js$", "^www/"]'

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ inputs:
1313
required: false
1414
default: '[]'
1515
runs:
16-
using: 'node16'
16+
using: 'node20'
1717
main: 'dist/index.js'

0 commit comments

Comments
 (0)