mirror of
https://github.com/cloudflare/wrangler-action.git
synced 2024-11-22 01:53:24 +01:00
Add tests for package managers support
This commit is contained in:
parent
868dbd9a40
commit
11f981cea4
1 changed files with 34 additions and 1 deletions
33
.github/workflows/deploy.yml
vendored
33
.github/workflows/deploy.yml
vendored
|
@ -112,3 +112,36 @@ jobs:
|
||||||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||||
command: delete --name wrangler-action-test --force
|
command: delete --name wrangler-action-test --force
|
||||||
# END Setup and teardown of Workers w/ Secrets Tests
|
# END Setup and teardown of Workers w/ Secrets Tests
|
||||||
|
|
||||||
|
- name: Support packageManager variable
|
||||||
|
uses: ./
|
||||||
|
with:
|
||||||
|
workingDirectory: "./test/fixtures/empty"
|
||||||
|
packageManager: "npm"
|
||||||
|
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||||
|
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||||
|
command: deploy --dry-run
|
||||||
|
|
||||||
|
- name: Support npm package manager
|
||||||
|
uses: ./
|
||||||
|
with:
|
||||||
|
workingDirectory: "./test/fixtures/npm"
|
||||||
|
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||||
|
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||||
|
command: deploy --dry-run
|
||||||
|
|
||||||
|
- name: Support yarn package manager
|
||||||
|
uses: ./
|
||||||
|
with:
|
||||||
|
workingDirectory: "./test/fixtures/yarn"
|
||||||
|
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||||
|
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||||
|
command: deploy --dry-run
|
||||||
|
|
||||||
|
- name: Support pnpm package manager
|
||||||
|
uses: ./
|
||||||
|
with:
|
||||||
|
workingDirectory: "./test/fixtures/pnpm"
|
||||||
|
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||||
|
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||||
|
command: deploy --dry-run
|
||||||
|
|
Loading…
Reference in a new issue