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(api-server): improve tests #9325

Merged
merged 9 commits into from
Oct 24, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -545,3 +545,42 @@ jobs:

steps:
- run: echo "RSC smoke tests mock"

api-server-dist-test:
needs: check

name: 📡🔁 api-server tests / node 18 latest
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

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

- 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

- name: 🧪 Test
run: yarn test:dist
working-directory: ./packages/api-server

api-server-dist-test-docs:
needs: only-doc-changes
if: needs.only-doc-changes.outputs.only-doc-changes == 'true'

name: 📡🔁 api-server tests / node 18 latest
runs-on: ubuntu-latest

steps:
- run: echo "Only doc changes"
2 changes: 2 additions & 0 deletions packages/api-server/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
!src/__tests__/fixtures/**/dist
coverage
Loading
Loading