Skip to content

Commit

Permalink
try dynamic node version in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
bracesproul committed Jul 24, 2024
1 parent 2b9f09a commit 0dce913
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions .github/workflows/compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,19 +93,41 @@ jobs:
- name: Test `@langchain/community` with latest deps
run: docker compose -f dependency_range_tests/docker-compose.yml run community-latest-deps

# community-lowest-deps:
# runs-on: ubuntu-latest
# needs: get-changed-files
# if: contains(needs.get-changed-files.outputs.changed_files, 'libs/langchain-community/')
# steps:
# - uses: actions/checkout@v4
# - name: Use Node.js ${{ env.NODE_VERSION }}
# uses: actions/setup-node@v3
# with:
# node-version: ${{ env.NODE_VERSION }}
# cache: "yarn"
# - name: Install dependencies
# run: yarn install --immutable
# - name: Build `@langchain/standard-tests`
# run: yarn build --filter=@langchain/standard-tests
# - name: Test `@langchain/community` with lowest deps
# run: docker compose -f dependency_range_tests/docker-compose.yml run community-lowest-deps

community-lowest-deps:
runs-on: ubuntu-latest
needs: get-changed-files
if: contains(needs.get-changed-files.outputs.changed_files, 'libs/langchain-community/')
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ env.NODE_VERSION }}
- name: Use Node.js 20 for installation
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
node-version: '20'
cache: "yarn"
- name: Install dependencies
run: yarn install --immutable
- name: Switch to Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
- name: Build `@langchain/standard-tests`
run: yarn build --filter=@langchain/standard-tests
- name: Test `@langchain/community` with lowest deps
Expand Down

0 comments on commit 0dce913

Please sign in to comment.