Don't install the CLI
This commit is contained in:
2 files changed
+8
-7
No files matched your search
@@ -33,11 +33,12 @@ jobs:
|
||||
run: npm install -D @playwright/test
|
||||
- name: Install Playwright Browsers
|
||||
run: npx playwright install --with-deps
|
||||
- name: Install Dioxus CLI
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: install
|
||||
args: --path packages/cli
|
||||
# Cache the CLI by using cargo run internally
|
||||
# - name: Install Dioxus CLI
|
||||
# uses: actions-rs/cargo@v1
|
||||
# with:
|
||||
# command: install
|
||||
# args: --path packages/cli
|
||||
- name: Run Playwright tests
|
||||
run: npx playwright test
|
||||
- uses: actions/upload-artifact@v3
|
||||
|
||||
@@ -82,7 +82,7 @@ module.exports = defineConfig({
|
||||
},
|
||||
{
|
||||
cwd: path.join(process.cwd(), "playwright-tests", "web"),
|
||||
command: "dx serve",
|
||||
command: "cargo run --package dioxus-cli -- serve",
|
||||
port: 8080,
|
||||
timeout: 10 * 60 * 1000,
|
||||
reuseExistingServer: !process.env.CI,
|
||||
@@ -90,7 +90,7 @@ module.exports = defineConfig({
|
||||
},
|
||||
{
|
||||
cwd: path.join(process.cwd(), 'playwrite-tests', 'fullstack'),
|
||||
command: 'dx build --features web --release\ncargo run --release --features ssr',
|
||||
command: 'cargo run --package dioxus-cli -- build --features web --release\ncargo run --release --features ssr',
|
||||
port: 3333,
|
||||
timeout: 10 * 60 * 1000,
|
||||
reuseExistingServer: !process.env.CI,
|
||||
|
||||
Reference in new issue
Block a user