Skip to content

Commit

Permalink
Upgrade dependencies and node version (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuliren authored May 14, 2024
1 parent 6a7a322 commit 7903ffb
Show file tree
Hide file tree
Showing 18 changed files with 86,351 additions and 59,504 deletions.
20 changes: 20 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,28 @@ updates:
directory: /
schedule:
interval: monthly
groups:
all-dependencies:
patterns:
- "*"

- package-ecosystem: npm
directory: action
schedule:
interval: monthly
groups:
all-dependencies:
patterns:
- "*"

- package-ecosystem: npm
directory: cli
schedule:
interval: monthly
groups:
all-dependencies:
patterns:
- "*"
ignore:
- dependency-name: "chalk"
# chalk 5.x is pure esm and does not work with tests
Expand All @@ -23,6 +35,10 @@ updates:
directory: docs
schedule:
interval: monthly
groups:
all-dependencies:
patterns:
- "*"
ignore:
- dependency-name: "@mdx-js/react"
# currently only v1 is supported
Expand All @@ -33,3 +49,7 @@ updates:
directory: types
schedule:
interval: monthly
groups:
all-dependencies:
patterns:
- "*"
15 changes: 5 additions & 10 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,14 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18

- name: Setup cache
uses: actions/cache@v3
with:
path: |
${{ github.workspace }}/docs/node_modules
key: ${{ runner.os }}-node-16-${{ hashFiles('docs/yarn.lock') }}
node-version: 20
cache: yarn
cache-dependency-path: docs

- name: Install dependencies
run: yarn install
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/test-action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '16'
node-version: 20
- name: Setup cache
uses: actions/cache@v3
with:
path: |
${{ github.workspace }}/types/node_modules
${{ github.workspace }}/action/node_modules
key: ${{ runner.os }}-node-16-action-${{ hashFiles('types/yarn.lock') }}-${{ hashFiles('action/yarn.lock') }}
key: ${{ runner.os }}-node-20-action-${{ hashFiles('types/yarn.lock') }}-${{ hashFiles('action/yarn.lock') }}
- name: Install types dependencies
working-directory: types
run: |
Expand All @@ -55,6 +55,10 @@ jobs:
git diff
exit 1
fi
- name: Emit package size
run: |
echo "Writing to action_package_size.json..."
echo "{ \"value\": $(du -sk dist | awk '{print $1 * 1024}'), \"tag\": \"Byte Size\" }" | tee action_package_size.json
- name: Emit runner memory
working-directory: ${{ github.workspace }}
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test-cli.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '16'
node-version: 20
- name: Setup cache
uses: actions/cache@v3
with:
path: |
${{ github.workspace }}/types/node_modules
${{ github.workspace }}/action/node_modules
${{ github.workspace }}/cli/node_modules
key: ${{ runner.os }}-node-16-cli-${{ hashFiles('types/yarn.lock') }}-${{ hashFiles('action/yarn.lock') }}-${{ hashFiles('cli/yarn.lock') }}
key: ${{ runner.os }}-node-20-cli-${{ hashFiles('types/yarn.lock') }}-${{ hashFiles('action/yarn.lock') }}-${{ hashFiles('cli/yarn.lock') }}
- name: Install types dependencies
working-directory: types
run: |
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/test-types.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,21 @@ jobs:
build:
strategy:
matrix:
node-version: [ 16, 18 ]
node-version: [ 18, 20 ]
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Setup cache
uses: actions/cache@v3
with:
path: |
${{ github.workspace }}/types/node_modules
key: ${{ runner.os }}-node-16-types-${{ hashFiles('types/yarn.lock') }}
key: ${{ runner.os }}-node-${{ matrix.node-version }}-types-${{ hashFiles('types/yarn.lock') }}
- name: Install dependencies
run: |
yarn install --frozen-lockfile
Expand All @@ -60,8 +60,6 @@ jobs:
git diff
exit 1
fi
- name: Generate ts coverage report
run: yarn ts-coverage
- name: Run stoat action
uses: ./
if: always()
11 changes: 7 additions & 4 deletions .stoat/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ plugins:
metadata:
name: CLI Test Coverage
path: cli/coverage/lcov-report
types_ts_coverage:
metadata:
name: Types TS Coverage
path: types/coverage-ts
docs:
metadata:
name: Documentation
Expand All @@ -34,6 +30,8 @@ plugins:
metric:
action_runner_memory:
filename: action_runner_memory.jsonl
action_package_size:
filename: action/action_package_size.json
chart:
action_runner_memory_chart:
title: Runner Memory Usage
Expand All @@ -43,3 +41,8 @@ plugins:
- Used
- Free
- Buff/Cache
action_package_size_chart:
title: Package Size
y_title: Size (bytes)
tags:
- Byte Size
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2022 Stoat Dev
Copyright (c) 2024 Stoat Dev

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ inputs:
default: ${{ toJSON(matrix) }}
description: Matrix of the current run
runs:
using: 'node16'
using: 'node20'
main: 'action/dist/index.js'
Loading

0 comments on commit 7903ffb

Please sign in to comment.