Skip to content

Commit

Permalink
(ci) Updated testing to Node versions 18, 20 and 22
Browse files Browse the repository at this point in the history
  • Loading branch information
vHeemstra committed Aug 10, 2024
1 parent c74f876 commit c56624f
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 30 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/manual_bump_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ jobs:
shell: bash
steps:
- name: Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: vHeemstra/is-apng
fetch-depth: 0
token: ${{ secrets.GH_TOKEN }}

- name: Install Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@4
with:
node-version: 16.x
node-version: 22.x
registry-url: https://registry.npmjs.org/

- name: Set Git user
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/manual_run_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ on:
node_versions:
description: 'Select Node versions'
required: true
default: '["14.x", "16.x", "18.x"]'
default: '["18.x", "20.x", "22.x"]'
type: choice
options:
- '["14.x"]'
- '["16.x"]'
- '["18.x"]'
- '["16.x", "18.x"]'
- '["14.x", "16.x", "18.x"]'
- '["20.x"]'
- '["22.x"]'
- '["20.x", "22.x"]'
- '["18.x", "20.x", "22.x"]'
os_version:
description: 'Select OS'
required: true
Expand All @@ -39,11 +39,11 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: vHeemstra/is-apng
- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/publish_on_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [14.x, 16.x, 18.x]
node-version: [18.x, 20.x, 22.x]
runs-on: ${{ matrix.os }}
steps:
- name: Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: vHeemstra/is-apng
- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
# cache: 'npm'
Expand All @@ -34,13 +34,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: vHeemstra/is-apng
- name: Install Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16.x
node-version: 22.x
# cache: 'npm'
registry-url: 'https://registry.npmjs.org'
- run: npm install
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/release_on_version_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
node-version: [14.x, 16.x, 18.x]
node-version: [18.x, 20.x, 22.x]
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
steps:
- name: Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: vHeemstra/is-apng
- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install
Expand All @@ -42,7 +42,7 @@ jobs:
s=':white_check_mark: '"Node ${{ matrix.node-version }}"
echo "$s" > ${{ env.FILENAME_TXT }}
- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ env.FILENAME }}
path: ${{ env.FILENAME_TXT }}
Expand All @@ -58,15 +58,15 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
steps:
- name: Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: vHeemstra/is-apng
fetch-depth: 0

- name: Install Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16.x
node-version: 22.x
registry-url: https://registry.npmjs.org/

- name: Set Git user
Expand All @@ -90,7 +90,7 @@ jobs:
# echo $RELEASE_VERSION
# echo ${{ env.RELEASE_VERSION }}
- name: Download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
# NOTE: if all artifacts are downloaded,
# they will each put in their own folder.

Expand All @@ -100,7 +100,7 @@ jobs:
echo "$s" > matrix-all.txt
- name: Upload merged artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: matrix-all
path: matrix-all.txt
Expand All @@ -121,7 +121,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
steps:
- name: Clean up artifacts
uses: geekyeggo/delete-artifact@v2
uses: geekyeggo/delete-artifact@v5
with:
name: |
matrix-*
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test_on_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [14.x, 16.x, 18.x]
node-version: [18.x, 20.x, 22.x]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
repository: vHeemstra/is-apng
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
# cache: 'npm'
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default function isApng(buffer: Buffer | Uint8Array): boolean {
return false
}

// APNGs have an animation control chunk ('acTL') preceding any IDAT(s).
// APNGs have an animation control chunk (acTL) preceding any IDAT(s).
// See: https://en.wikipedia.org/wiki/APNG#File_format

buffer = buffer.subarray(8)
Expand Down

0 comments on commit c56624f

Please sign in to comment.