diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 357d2ca5..9599a22a 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -1,12 +1,15 @@ name: Build docker images on PR -on: pull_request +on: + pull_request: + branches: + - main jobs: build: name: Test build for Node.js ${{ matrix.node-version }} runs-on: ubuntu-latest strategy: matrix: - node-version: [20, 22] + node-version: [20, 22, 24] steps: - name: Checkout uses: actions/checkout@v4 @@ -14,10 +17,11 @@ jobs: uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - - name: Set up Medusa CLI - run: npm i -g @medusajs/cli - name: Create a test project - run: npx medusa new -y --skip-db --skip-migrations test + uses: actions/checkout@v4 + with: + repository: medusajs/medusa-starter-default + path: test - name: Copy Dockerfile to the test project run: cp Dockerfile .dockerignore test/ - name: Set up QEMU