This repository has been archived on 2023-10-27. You can view files and clone it, but cannot push or open issues or pull requests.
beatsaber-helpers/.gitea/workflows/tests.yaml

25 lines
501 B
YAML
Raw Normal View History

2023-03-29 17:49:23 +00:00
name: Node.js Tests
2023-03-29 17:48:29 +00:00
on:
push:
2023-03-29 17:48:46 +00:00
branches: [master]
2023-03-29 17:48:29 +00:00
pull_request:
2023-03-29 17:48:46 +00:00
branches: [master]
2023-03-29 17:48:29 +00:00
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
2023-03-29 18:05:44 +00:00
node-version: [15.x, 16.x, 17.x, 18.x, 19.x]
2023-03-29 17:48:29 +00:00
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
2023-03-29 17:51:41 +00:00
- run: npm ci
2023-03-29 17:48:29 +00:00
- run: npm run build --if-present
- run: npm test