Skip to content

Commit

Permalink
Update packages and GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanogermano authored Sep 22, 2024
1 parent 9bb47f0 commit 0b5fadf
Show file tree
Hide file tree
Showing 3 changed files with 98 additions and 110 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, 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

name: Tests

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

jobs:
test:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest, macos-latest]
node-version: [18.x, 20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- run: npm ci
- run: npm run test
176 changes: 67 additions & 109 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "LoIDE Server API",
"main": "app.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"test": "echo \"Warning: no tests are currently available.\"",
"start": "nodemon app.js"
},
"repository": {
Expand Down

0 comments on commit 0b5fadf

Please sign in to comment.