Skip to content

Commit 8b63597

Browse files
authored
Fix integrate test at release workflow (#352)
2 parents dc87780 + 3935388 commit 8b63597

File tree

2 files changed

+9
-21
lines changed

2 files changed

+9
-21
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -34,24 +34,12 @@ jobs:
3434
path: junit
3535

3636
cli_test:
37-
strategy:
38-
matrix:
39-
container_tag:
40-
# - "current"
41-
- "lts"
42-
- "22"
43-
fail-fast: false
44-
4537
runs-on: ubuntu-latest
46-
container:
47-
image: "node:${{ matrix.container_tag }}"
4838

4939
steps:
5040
- uses: actions/checkout@v4
51-
- name: Show node env
52-
run: |
53-
node -v
54-
npm -v
55-
- run: npm ci
56-
- run: npm run build
57-
- run: npm run integrate_test
41+
- uses: earthly/actions-setup@v1.0.13
42+
with:
43+
version: latest
44+
github-token: ${{ secrets.GITHUB_TOKEN }}
45+
- run: earthly +integrate-test

Earthfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ build:
1212
RUN npm run build
1313
SAVE ARTIFACT dist/ dist
1414

15-
integate-test:
15+
integrate-test:
1616
FROM +build
17-
COPY --dir integrate_tests __tests__ .
17+
COPY --dir integrate_tests tests .
1818
RUN rm -rf dist
1919
COPY +build/dist dist
2020

2121
RUN npm run integrate_test
2222

2323
# Test publishing from local purpose
2424
prepublish:
25-
BUILD +integate-test
25+
BUILD +integrate-test
2626
LOCALLY
2727
RUN rm -rf dist
2828
COPY +build/dist dist
@@ -36,7 +36,7 @@ prepublish:
3636
RUN npm install && npx -y jsr publish
3737

3838
publish:
39-
BUILD +integate-test
39+
BUILD +integrate-test
4040
LOCALLY
4141
ARG --required VERSION
4242
RUN rm -rf dist

0 commit comments

Comments
 (0)