Skip to content

Commit 7903ffb

Browse files
authored
Upgrade dependencies and node version (#233)
1 parent 6a7a322 commit 7903ffb

18 files changed

+86351
-59504
lines changed

.github/dependabot.yaml

+20
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,28 @@ updates:
44
directory: /
55
schedule:
66
interval: monthly
7+
groups:
8+
all-dependencies:
9+
patterns:
10+
- "*"
711

812
- package-ecosystem: npm
913
directory: action
1014
schedule:
1115
interval: monthly
16+
groups:
17+
all-dependencies:
18+
patterns:
19+
- "*"
1220

1321
- package-ecosystem: npm
1422
directory: cli
1523
schedule:
1624
interval: monthly
25+
groups:
26+
all-dependencies:
27+
patterns:
28+
- "*"
1729
ignore:
1830
- dependency-name: "chalk"
1931
# chalk 5.x is pure esm and does not work with tests
@@ -23,6 +35,10 @@ updates:
2335
directory: docs
2436
schedule:
2537
interval: monthly
38+
groups:
39+
all-dependencies:
40+
patterns:
41+
- "*"
2642
ignore:
2743
- dependency-name: "@mdx-js/react"
2844
# currently only v1 is supported
@@ -33,3 +49,7 @@ updates:
3349
directory: types
3450
schedule:
3551
interval: monthly
52+
groups:
53+
all-dependencies:
54+
patterns:
55+
- "*"

.github/workflows/docs.yaml

+5-10
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,14 @@ jobs:
2626

2727
steps:
2828
- name: Checkout
29-
uses: actions/checkout@v3
29+
uses: actions/checkout@v4
3030

3131
- name: Set up Node
32-
uses: actions/setup-node@v3
32+
uses: actions/setup-node@v4
3333
with:
34-
node-version: 18
35-
36-
- name: Setup cache
37-
uses: actions/cache@v3
38-
with:
39-
path: |
40-
${{ github.workspace }}/docs/node_modules
41-
key: ${{ runner.os }}-node-16-${{ hashFiles('docs/yarn.lock') }}
34+
node-version: 20
35+
cache: yarn
36+
cache-dependency-path: docs
4237

4338
- name: Install dependencies
4439
run: yarn install

.github/workflows/test-action.yaml

+8-4
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,18 @@ jobs:
2626
runs-on: ubuntu-latest
2727
steps:
2828
- name: Checkout code
29-
uses: actions/checkout@v3
29+
uses: actions/checkout@v4
3030
- name: Setup node
31-
uses: actions/setup-node@v3
31+
uses: actions/setup-node@v4
3232
with:
33-
node-version: '16'
33+
node-version: 20
3434
- name: Setup cache
3535
uses: actions/cache@v3
3636
with:
3737
path: |
3838
${{ github.workspace }}/types/node_modules
3939
${{ github.workspace }}/action/node_modules
40-
key: ${{ runner.os }}-node-16-action-${{ hashFiles('types/yarn.lock') }}-${{ hashFiles('action/yarn.lock') }}
40+
key: ${{ runner.os }}-node-20-action-${{ hashFiles('types/yarn.lock') }}-${{ hashFiles('action/yarn.lock') }}
4141
- name: Install types dependencies
4242
working-directory: types
4343
run: |
@@ -55,6 +55,10 @@ jobs:
5555
git diff
5656
exit 1
5757
fi
58+
- name: Emit package size
59+
run: |
60+
echo "Writing to action_package_size.json..."
61+
echo "{ \"value\": $(du -sk dist | awk '{print $1 * 1024}'), \"tag\": \"Byte Size\" }" | tee action_package_size.json
5862
- name: Emit runner memory
5963
working-directory: ${{ github.workspace }}
6064
run: |

.github/workflows/test-cli.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,19 @@ jobs:
2424
runs-on: ubuntu-latest
2525
steps:
2626
- name: Checkout code
27-
uses: actions/checkout@v3
27+
uses: actions/checkout@v4
2828
- name: Setup node
29-
uses: actions/setup-node@v3
29+
uses: actions/setup-node@v4
3030
with:
31-
node-version: '16'
31+
node-version: 20
3232
- name: Setup cache
3333
uses: actions/cache@v3
3434
with:
3535
path: |
3636
${{ github.workspace }}/types/node_modules
3737
${{ github.workspace }}/action/node_modules
3838
${{ github.workspace }}/cli/node_modules
39-
key: ${{ runner.os }}-node-16-cli-${{ hashFiles('types/yarn.lock') }}-${{ hashFiles('action/yarn.lock') }}-${{ hashFiles('cli/yarn.lock') }}
39+
key: ${{ runner.os }}-node-20-cli-${{ hashFiles('types/yarn.lock') }}-${{ hashFiles('action/yarn.lock') }}-${{ hashFiles('cli/yarn.lock') }}
4040
- name: Install types dependencies
4141
working-directory: types
4242
run: |

.github/workflows/test-types.yaml

+4-6
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,21 @@ jobs:
3131
build:
3232
strategy:
3333
matrix:
34-
node-version: [ 16, 18 ]
34+
node-version: [ 18, 20 ]
3535
runs-on: ubuntu-latest
3636
steps:
3737
- name: Checkout code
38-
uses: actions/checkout@v3
38+
uses: actions/checkout@v4
3939
- name: Setup node
40-
uses: actions/setup-node@v3
40+
uses: actions/setup-node@v4
4141
with:
4242
node-version: ${{ matrix.node-version }}
4343
- name: Setup cache
4444
uses: actions/cache@v3
4545
with:
4646
path: |
4747
${{ github.workspace }}/types/node_modules
48-
key: ${{ runner.os }}-node-16-types-${{ hashFiles('types/yarn.lock') }}
48+
key: ${{ runner.os }}-node-${{ matrix.node-version }}-types-${{ hashFiles('types/yarn.lock') }}
4949
- name: Install dependencies
5050
run: |
5151
yarn install --frozen-lockfile
@@ -60,8 +60,6 @@ jobs:
6060
git diff
6161
exit 1
6262
fi
63-
- name: Generate ts coverage report
64-
run: yarn ts-coverage
6563
- name: Run stoat action
6664
uses: ./
6765
if: always()

.stoat/config.yaml

+7-4
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ plugins:
1717
metadata:
1818
name: CLI Test Coverage
1919
path: cli/coverage/lcov-report
20-
types_ts_coverage:
21-
metadata:
22-
name: Types TS Coverage
23-
path: types/coverage-ts
2420
docs:
2521
metadata:
2622
name: Documentation
@@ -34,6 +30,8 @@ plugins:
3430
metric:
3531
action_runner_memory:
3632
filename: action_runner_memory.jsonl
33+
action_package_size:
34+
filename: action/action_package_size.json
3735
chart:
3836
action_runner_memory_chart:
3937
title: Runner Memory Usage
@@ -43,3 +41,8 @@ plugins:
4341
- Used
4442
- Free
4543
- Buff/Cache
44+
action_package_size_chart:
45+
title: Package Size
46+
y_title: Size (bytes)
47+
tags:
48+
- Byte Size

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2022 Stoat Dev
3+
Copyright (c) 2024 Stoat Dev
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

action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ inputs:
2424
default: ${{ toJSON(matrix) }}
2525
description: Matrix of the current run
2626
runs:
27-
using: 'node16'
27+
using: 'node20'
2828
main: 'action/dist/index.js'

0 commit comments

Comments
 (0)