2023-05-29 23:42:24 +03:00
|
|
|
name: CI Server
|
|
|
|
on:
|
|
|
|
push:
|
2023-06-27 18:55:07 +03:00
|
|
|
branches:
|
|
|
|
- main
|
2023-06-26 20:21:51 +03:00
|
|
|
pull_request_target:
|
2023-05-29 23:42:24 +03:00
|
|
|
jobs:
|
|
|
|
server-test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2023-06-30 11:35:59 +03:00
|
|
|
with:
|
|
|
|
ref: "refs/pull/${{ github.event.number }}/merge"
|
2023-05-29 23:42:24 +03:00
|
|
|
- name: Setup Node.js
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
node-version: "18"
|
|
|
|
- name: Server / Install Dependencies
|
2023-06-14 17:56:29 +03:00
|
|
|
run: cd server && yarn install
|
2023-05-29 23:42:24 +03:00
|
|
|
- name: Server / Run linter
|
2023-06-14 17:56:29 +03:00
|
|
|
run: cd server && yarn lint
|
2023-05-29 23:42:24 +03:00
|
|
|
- name: Server / Run jest tests
|
|
|
|
run: |
|
2023-06-14 17:56:29 +03:00
|
|
|
cd server && yarn test
|