Skip to content

Commit

Permalink
fix: add environment setup step to integration tests workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
devin-ai-integration[bot] and congminh1254 committed Feb 8, 2025
1 parent 3d3b19f commit a00d96a
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: integration-tests
on:
pull_request:
types: [opened, synchronize]
branches:
- main
push:
branches:
- main

jobs:
integration-test:
runs-on: ubuntu-latest
name: Integration Tests
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '20'
- name: npm install
run: npm install
- name: Setup Integration Test Environment
env:
BOX_JWT_CONFIG: ${{ secrets.BOX_JWT_CONFIG }}
BOX_ADMIN_USER_ID: ${{ secrets.BOX_ADMIN_USER_ID }}
run: |
mkdir -p ~/.box
chmod 700 ~/.box
echo '{"cacheTokens":true,"boxReportsFolderPath":"/tmp/box-reports","boxDownloadsFolderPath":"/tmp/box-downloads"}' > ~/.box/settings.json
chmod 600 ~/.box/settings.json
- name: Run Integration Tests
env:
BOX_JWT_CONFIG: ${{ secrets.BOX_JWT_CONFIG }}
BOX_ADMIN_USER_ID: ${{ secrets.BOX_ADMIN_USER_ID }}
run: npm run test:integration

0 comments on commit a00d96a

Please sign in to comment.