Skip to content

Commit

Permalink
Fix integrate test at release workflow (#352)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kesin11 authored Jan 1, 2025
2 parents dc87780 + 3935388 commit 8b63597
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 21 deletions.
22 changes: 5 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
with:
version: latest
github-token: ${{ secrets.GITHUB_TOKEN }}
- run: earthly +integrate-test
8 changes: 4 additions & 4 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ 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

RUN npm run integrate_test

# Test publishing from local purpose
prepublish:
BUILD +integate-test
BUILD +integrate-test
LOCALLY
RUN rm -rf dist
COPY +build/dist dist
Expand All @@ -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
Expand Down

0 comments on commit 8b63597

Please sign in to comment.