Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 7a1c0da

Browse files
committedMar 11, 2024
Run the CloudFlare worker integration test in CI
1 parent 49a49d8 commit 7a1c0da

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎.github/workflows/ci.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
strategy:
3535
matrix:
3636
node-version: [18.x, 20.x]
37-
suite: [commonjs, esm, typescript]
37+
suite: [commonjs, esm, typescript, cloudflare-worker]
3838
# See supported Node.js release schedule at https://nodejs.org/en/about/previous-releases
3939

4040
env:
@@ -49,6 +49,8 @@ jobs:
4949
cache: "npm"
5050
# Build a production tarball and run the integration tests against it.
5151
- run: |
52+
test "${{ matrix.suite }}" = "cloudflare-worker" && echo "REPLICATE_API_TOKEN=${{ secrets.REPLICATE_API_TOKEN }}" > .dev.vars
5253
PKG_TARBALL=$(npm --loglevel error pack)
54+
npm --prefix integration/${{ matrix.suite }} install
5355
npm --prefix integration/${{ matrix.suite }} install "file:/./$PKG_TARBALL"
5456
npm --prefix integration/${{ matrix.suite }} test

0 commit comments

Comments
 (0)
Please sign in to comment.