Skip to content

feat(ci): ignore clients on local but not on CI #267

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

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .github/actions/cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ runs:
shell: bash
run: echo "CACHE_VERSION=$(< .github/.cache_version)" >> $GITHUB_ENV

- name: Edit .gitignore to include clients
shell: bash
run: ./scripts/ci/gitignore-for-ci.sh

# JavaScript setup
- name: Get yarn cache directory path
shell: bash
Expand Down
4 changes: 4 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ runs:
shell: bash
run: echo "CACHE_VERSION=$(< .github/.cache_version)" >> $GITHUB_ENV

- name: Edit .gitignore to include clients
shell: bash
run: ./scripts/ci/gitignore-for-ci.sh

- name: Install Java
if: inputs.type != 'minimal'
uses: actions/setup-java@v2
Expand Down
27 changes: 27 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,30 @@ dist
tests/output/*/.openapi-generator-ignore

generators/bin

# Ignore all the generated code (/!\ DO NOT ADD ANYTHING AFTER THIS)
# Ignore the roots and go down the tree by negating hand written files
clients/
!clients/README.md
!clients/**/.openapi-generator-ignore


# Java
!clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/exceptions
!clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/utils
clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/utils/echo/EchoResponse.java

# Javascript
!clients/algoliasearch-client-javascript/*.*
!clients/algoliasearch-client-javascript/.github
!clients/algoliasearch-client-javascript/.yarn
!clients/algoliasearch-client-javascript/scripts
!clients/algoliasearch-client-javascript/packages/algoliasearch
!clients/algoliasearch-client-javascript/packages/requester-*
!clients/algoliasearch-client-javascript/packages/client-common

# PHP
!clients/algoliasearch-client-php/lib
clients/algoliasearch-client-php/lib/*.php
clients/algoliasearch-client-php/lib/Api/
clients/algoliasearch-client-php/lib/Configuration/Configuration.php
20 changes: 0 additions & 20 deletions clients/algoliasearch-client-java-2/.gitignore

This file was deleted.

This file was deleted.

Loading