diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 55c3431..061ef15 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,24 +34,12 @@ jobs: path: junit cli_test: - strategy: - matrix: - container_tag: - # - "current" - - "lts" - - "22" - fail-fast: false - runs-on: ubuntu-latest - container: - image: "node:${{ matrix.container_tag }}" steps: - uses: actions/checkout@v4 - - name: Show node env - run: | - node -v - npm -v - - run: npm ci - - run: npm run build - - run: npm run integrate_test + - uses: earthly/actions-setup@v1.0.13 + with: + version: latest + github-token: ${{ secrets.GITHUB_TOKEN }} + - run: earthly +integrate-test diff --git a/Earthfile b/Earthfile index 19b68a1..0d54514 100644 --- a/Earthfile +++ b/Earthfile @@ -12,9 +12,9 @@ build: RUN npm run build SAVE ARTIFACT dist/ dist -integate-test: +integrate-test: FROM +build - COPY --dir integrate_tests __tests__ . + COPY --dir integrate_tests tests . RUN rm -rf dist COPY +build/dist dist @@ -22,7 +22,7 @@ integate-test: # Test publishing from local purpose prepublish: - BUILD +integate-test + BUILD +integrate-test LOCALLY RUN rm -rf dist COPY +build/dist dist @@ -36,7 +36,7 @@ prepublish: RUN npm install && npx -y jsr publish publish: - BUILD +integate-test + BUILD +integrate-test LOCALLY ARG --required VERSION RUN rm -rf dist