Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(server): improve server tests #9958

Merged
merged 14 commits into from
Feb 2, 2024
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -904,3 +904,44 @@ jobs:

steps:
- run: echo "Skipped"

server-tests:
needs: check

name: Server tests
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Enable Corepack
run: corepack enable

- name: ⬢ Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: 🐈 Set up yarn cache
uses: ./.github/actions/set-up-yarn-cache

- name: 🐈 Yarn install
run: yarn install --inline-builds
env:
GITHUB_TOKEN: ${{ github.token }}

- name: 🔨 Build
run: yarn build

- run: yarn vitest run
working-directory: ./tasks/server-tests

server-tests-skip:
needs: detect-changes
if: needs.detect-changes.outputs.onlydocs == 'true'

name: Server tests
runs-on: ubuntu-latest

steps:
- run: echo "Skipped"
139 changes: 0 additions & 139 deletions tasks/server-tests/__snapshots__/bothServer.test.mts.snap

This file was deleted.

Loading
Loading