Skip to content

Commit

Permalink
update actions to node v22
Browse files Browse the repository at this point in the history
  • Loading branch information
stasel committed Dec 12, 2024
1 parent 48f1c2d commit e7d1260
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 30 deletions.
27 changes: 13 additions & 14 deletions .github/workflows/client-code-style-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,28 @@ name: Client Code style (prettier, lint)

on:
push:
branches: [ develop, main ]
branches: [develop, main]
pull_request:
branches: [ develop, main ]
branches: [develop, main]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x]
node-version: [22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
# Note: keep this the same as the version on Heroku!

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
working-directory: client
- run: npm run code-style-check
working-directory: client
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- run: npm ci
working-directory: client
- run: npm run code-style-check
working-directory: client
31 changes: 15 additions & 16 deletions .github/workflows/server-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,29 @@ name: Server tests

on:
push:
branches: [ develop, main ]
branches: [develop, main]
pull_request:
branches: [ develop, main ]
branches: [develop, main]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x]
node-version: [22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
working-directory: server
- name: Run tests
run: npm test
working-directory: server
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: Install dependencies
run: npm ci
working-directory: server
- name: Run tests
run: npm test
working-directory: server

0 comments on commit e7d1260

Please sign in to comment.