Skip to content

Commit

Permalink
Actions: test on latest Node.js LTS as well [skip build]
Browse files Browse the repository at this point in the history
Fix concurrency restriction for matrix, update copyright year
  • Loading branch information
kevinlul committed Jan 20, 2025
1 parent 59134a1 commit 5a795ed
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

# SPDX-FileCopyrightText: © 2020–2025 Luna Brand, Kevin Lu
# SPDX-Licence-Identifier: AGPL-3.0-or-later
name: Compile and test

on:
push:
branches: [master]
pull_request:
branches: [master]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
strategy:
Expand All @@ -17,21 +17,20 @@ jobs:
os:
- ubuntu-latest
- ubuntu-24.04-arm
node-version:
- 20
- 22
runs-on: ${{ matrix.os }}
if: >-
!(
contains(github.event.head_commit.message, '[skip test]') ||
contains(github.event.head_commit.message, '[test skip]')
)
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
- name: Install Node
uses: actions/setup-node@v4
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: ${{ matrix.node-version }}
cache: yarn
- run: yarn
- run: yarn build
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ Please use Australian English spellings.
## Licence
Copyright © 2020–2024 Luna Brand, Kevin Lu.
Copyright © 2020–2025 Luna Brand, Kevin Lu.
See [COPYING](https://github.com/DawnbrandBots/emcee-tournament-bot/blob/master/COPYING) for more details.
```
Expand Down

0 comments on commit 5a795ed

Please sign in to comment.