diff --git a/.github/workflows/nutshell-integration.yml b/.github/workflows/nutshell-integration.yml index be2ef144..4f26b350 100644 --- a/.github/workflows/nutshell-integration.yml +++ b/.github/workflows/nutshell-integration.yml @@ -6,13 +6,6 @@ jobs: build-and-test: runs-on: ubuntu-latest - services: - docker: - image: docker:19.03.12 - ports: - - 3338:3338 - options: --privileged - steps: - name: Checkout repository uses: actions/checkout@v2 @@ -20,17 +13,16 @@ jobs: repository: 'cashubtc/nutshell' token: ${{ secrets.GITHUB_TOKEN }} - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - - - name: Build and Run Docker Container + - name: Set up Docker Compose run: | - docker build -t nutshell-app . - docker run -d -e MINT_LIGHTNING_BACKEND=FakeWallet -p 3338:3338 nutshell-app + sudo curl -L "https://github.com/docker/compose/releases/download/v2.2.3/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose + sudo chmod +x /usr/local/bin/docker-compose - - name: Execute Command Inside the Container + - name: Build and start services + env: + MINT_LIGHTNING_BACKEND: FakeWallet run: | - docker exec $(docker ps -q) poetry run mint --port 3338 --host 0.0.0.0 + docker-compose up -d - name: Run Tests uses: actions/setup-node@v3