mirror of
https://github.com/twentyhq/twenty.git
synced 2024-11-29 10:13:05 +03:00
30 lines
791 B
YAML
30 lines
791 B
YAML
name: CI Server
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request_target:
|
|
jobs:
|
|
server-test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
if: github.event_name == 'push'
|
|
with:
|
|
ref: ${{ github.head_ref || github.ref_name }}
|
|
- uses: actions/checkout@v3
|
|
if: github.event_name == 'pull_request_target'
|
|
with:
|
|
ref: "refs/pull/${{ github.event.number }}/merge"
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: "18"
|
|
- name: Server / Install Dependencies
|
|
run: cd server && yarn install
|
|
- name: Server / Run linter
|
|
run: cd server && yarn lint
|
|
- name: Server / Run jest tests
|
|
run: |
|
|
cd server && yarn test
|