Skip to content

fix: tolerate node_modules path differences in lib/ verification #204

fix: tolerate node_modules path differences in lib/ verification

fix: tolerate node_modules path differences in lib/ verification #204

name: "Integration Tests"
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
id-token: write
jobs:
integration-tests:
strategy:
matrix:
os: [ubuntu-24.04-arm, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '24'
- name: Setup JFrog Fly
uses: ./
- name: Verify FLY_REGISTRY_SUBDOMAIN is exported
run: |
echo "FLY_REGISTRY_SUBDOMAIN=${{ env.FLY_REGISTRY_SUBDOMAIN }}"
if [ -z "$FLY_REGISTRY_SUBDOMAIN" ]; then
echo "::error::FLY_REGISTRY_SUBDOMAIN is not set"
exit 1
fi
- name: Install dependencies
run: npm i
- name: Run fly-client integration tests
run: npx vitest run src/integration-tests/
docker-integration:
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v6
- name: Setup JFrog Fly
uses: ./
- name: Verify FLY_REGISTRY_SUBDOMAIN is exported
run: |
if [ -z "$FLY_REGISTRY_SUBDOMAIN" ]; then
echo "::error::FLY_REGISTRY_SUBDOMAIN is not set"
exit 1
fi
- name: Build test image
run: |
echo "fly-action integration test" > /tmp/testfile
echo -e "FROM scratch\nCOPY testfile /" > /tmp/Dockerfile
docker build -t ${{ env.FLY_REGISTRY_SUBDOMAIN }}/docker/fly-action-ci-test:${{ github.run_id }} -f /tmp/Dockerfile /tmp
- name: Push test image
run: docker push ${{ env.FLY_REGISTRY_SUBDOMAIN }}/docker/fly-action-ci-test:${{ github.run_id }}
- name: Remove local image
run: docker rmi ${{ env.FLY_REGISTRY_SUBDOMAIN }}/docker/fly-action-ci-test:${{ github.run_id }}
- name: Pull test image
run: docker pull ${{ env.FLY_REGISTRY_SUBDOMAIN }}/docker/fly-action-ci-test:${{ github.run_id }}
- name: Verify pulled image exists
run: docker image inspect ${{ env.FLY_REGISTRY_SUBDOMAIN }}/docker/fly-action-ci-test:${{ github.run_id }}