{"id":13531546,"url":"https://github.com/DevExpress/testcafe-action","last_synced_at":"2025-04-01T19:32:17.891Z","repository":{"id":35492057,"uuid":"218004668","full_name":"DevExpress/testcafe-action","owner":"DevExpress","description":"TestCafe test runner for GitHub Actions","archived":true,"fork":false,"pushed_at":"2023-12-15T10:46:15.000Z","size":40,"stargazers_count":36,"open_issues_count":2,"forks_count":16,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-03-23T10:44:27.070Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://testcafe.io","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DevExpress.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-10-28T08:56:49.000Z","updated_at":"2024-10-19T10:00:09.000Z","dependencies_parsed_at":"2023-01-05T13:17:23.646Z","dependency_job_id":"59ee738f-b0b4-4101-8deb-0d1dc37a2b27","html_url":"https://github.com/DevExpress/testcafe-action","commit_stats":{"total_commits":33,"total_committers":9,"mean_commits":"3.6666666666666665","dds":0.5151515151515151,"last_synced_commit":"32e627224d7e1be30f96aab5b459eff4a95cd56b"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevExpress%2Ftestcafe-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevExpress%2Ftestcafe-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevExpress%2Ftestcafe-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevExpress%2Ftestcafe-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DevExpress","download_url":"https://codeload.github.com/DevExpress/testcafe-action/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246700649,"owners_count":20819910,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T07:01:03.881Z","updated_at":"2025-04-01T19:32:12.871Z","avatar_url":"https://github.com/DevExpress.png","language":"JavaScript","readme":"# DEPREDCATED\nThe TestCafe team no longer maintains the `testcafe-action` repository. If you want to take over the project, we'll be happy to hand it over. To contact the team, create a new GitHub issue.\n\n## Run TestCafe GitHub Action\n\nThis action installs [TestCafe](https://github.com/DevExpress/testcafe) from `npm` and runs tests.\n\n### Usage\n\n```yaml\n- uses: actions/checkout@v1\n- uses: DevExpress/testcafe-action@latest\n  with:\n    args: \"chrome tests\"\n```\n\nIn this example, the [checkout](https://github.com/actions/checkout) action fetches the repository. Then `testcafe-action` installs the latest TestCafe version and runs tests from the `tests` folder in Google Chrome.\n\nThe [args](#args) option specifies command line arguments passed to the [testcafe](https://devexpress.github.io/testcafe/documentation/using-testcafe/command-line-interface.html) command.\n\nYou can also use the [version](#version) option to specify the TestCafe version.\n\n\u003e Run the [setup-node](https://github.com/actions/setup-node) action before `testcafe-action` to install a specific Node.js version.\n\n### Options\n\n#### args\n\nTestCafe [command line arguments](https://devexpress.github.io/testcafe/documentation/using-testcafe/command-line-interface.html).\n\n```yaml\n- uses: DevExpress/testcafe-action@latest\n  with:\n    args: \"chrome fixture.js -s takeOnFails=true -q -c 3\"\n```\n\n#### version\n\n*Optional*\n\nThe TestCafe version to install.\n\n```yaml\n- uses: DevExpress/testcafe-action@latest\n  with:\n    version: \"1.6.0\"\n    args: \"chrome tests\"\n```\n\n**Default value:** `latest`\n\n#### skip-install\n\n*Optional*\n\nWhether to skip having this action install TestCafe. This is useful if you are managing TestCafe already in your package.json dependencies and want to use that version.\n\n```yaml\n- uses: DevExpress/testcafe-action@latest\n  with:\n    skip-install: true\n    args: \"chrome tests\"\n```\n\n**Default value:** `false`\n\n### Examples\n\nThis section contains sample workflows that show how to use `testcafe-action`.\n\n#### Run TestCafe Tests\n\nThe following workflow demonstrates how to use `testcafe-action` in a basic scenario:\n\n```yaml\nname: Basic TestCafe Workflow\non: [push]\n\njobs:\n  build:\n    name: Run TestCafe Tests\n    runs-on: windows-latest\n    steps:\n      - uses: actions/checkout@v1\n      - name: Install TestCafe from 'npm' and Run Tests\n        uses: DevExpress/testcafe-action@latest\n        with:\n          args: \"chrome my-fixture.js\"\n```\n\nThe [checkout](https://github.com/actions/checkout) action fetches the repository. Then `testcafe-action` installs TestCafe and runs `my-fixture.js` in Chrome.\n\nThis workflow is triggered when you push changes to the repository. The job runs on a Windows virtual machine.\n\n#### Target Multiple Node.js Versions and Operating Systems\n\nThe following workflow demonstrates how to run TestCafe tests across Node.js versions and operating systems.\n\n```yaml\nname: Target Multiple Node.js Versions and Operating Systems\non: [push]\n\njobs:\n  build:\n    name: Run Tests Across Node.js Versions and Operating Systems\n    runs-on: ${{ matrix.os }}\n    strategy:\n      matrix:\n        os: [ubuntu-latest, windows-latest]\n        node: [8, 10, 12]\n    steps:\n      - uses: actions/setup-node@v1\n        with:\n          node-version: ${{ matrix.node }}\n      - uses: actions/checkout@v1\n      - name: Run TestCafe Tests\n        uses: DevExpress/testcafe-action@latest\n        with:\n          args: \"chrome tests\"\n```\n\nThis job contains a matrix strategy that duplicates it to run on Windows and Ubuntu virtual machines in three Node.js versions (`8`, `10`, and `12`).\n\nThe [setup-node](https://github.com/actions/setup-node) action installs the Node.js version defined in the matrix. Then [checkout](https://github.com/actions/checkout) fetches the code and `testcafe-action` runs tests.\n","funding_links":[],"categories":["Community Resources","五、按场景分类的实用Action"],"sub_categories":["Static Analysis","2. 代码质量与测试"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDevExpress%2Ftestcafe-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FDevExpress%2Ftestcafe-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDevExpress%2Ftestcafe-action/lists"}