mirror of
https://github.com/twentyhq/twenty.git
synced 2024-11-29 10:13:05 +03:00
8e319900d0
fix: test unused
33 lines
962 B
YAML
33 lines
962 B
YAML
name: CI Server
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request_target:
|
|
jobs:
|
|
server-test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
ref: "refs/pull/${{ github.event.number }}/merge"
|
|
- name: Check for redundant workflow run
|
|
run: |
|
|
HEAD_SHA=$(git rev-parse HEAD^)
|
|
if [ "$HEAD_SHA" != "${{ github.event.pull_request.head.sha }}" ]; then
|
|
echo "HEAD SHA and Pull Request HEAD SHA do not match, cancelling run"
|
|
echo "GitHub has scheduled a newer workflow run already."
|
|
exit 1
|
|
fi
|
|
- 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
|