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 e7d1260 commit bd32412
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 30 deletions.
31 changes: 15 additions & 16 deletions .github/workflows/client-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,30 @@ name: Client 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/
# Note that this version should stay 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'
- name: Install dependencies
run: npm ci
working-directory: client
- name: Run tests
run: npm test
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"
- name: Install dependencies
run: npm ci
working-directory: client
- name: Run tests
run: npm test
working-directory: client
27 changes: 13 additions & 14 deletions .github/workflows/server-code-style-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,28 @@ name: Server 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: server
- run: npm run code-style-check
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"
- run: npm ci
working-directory: server
- run: npm run code-style-check
working-directory: server

0 comments on commit bd32412

Please sign in to comment.