1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-13 22:23:47 +01:00
server/.github/workflows/build.yml

29 lines
591 B
YAML
Raw Normal View History

2022-12-27 03:20:26 +01:00
name: Build
on:
push:
2023-08-24 16:03:03 +02:00
branches: [ "master" ]
2022-12-27 03:20:26 +01:00
pull_request:
2023-08-24 16:03:03 +02:00
branches: [ "master" ]
2022-12-27 03:20:26 +01:00
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
2022-12-27 03:20:26 +01:00
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v3
2022-12-27 03:20:26 +01:00
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
2022-12-27 03:20:26 +01:00
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
2023-08-24 16:03:03 +02:00
- run: npm run test --if-present