{"id":24977699,"url":"https://github.com/adzz/yarn_command_action","last_synced_at":"2026-02-23T23:16:18.496Z","repository":{"id":45121165,"uuid":"245177570","full_name":"Adzz/yarn_command_action","owner":"Adzz","description":"A github action which will run any yarn or npm command in a node alpine container","archived":false,"fork":false,"pushed_at":"2022-01-06T23:33:35.000Z","size":6,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-15T19:45:57.518Z","etag":null,"topics":["cd","ci","deployment","docker","github-action","github-actions","javascript","js","npm","npm-script","react","yarn"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/Adzz.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}},"created_at":"2020-03-05T13:59:35.000Z","updated_at":"2025-02-28T13:00:56.000Z","dependencies_parsed_at":"2023-01-04T12:47:15.181Z","dependency_job_id":null,"html_url":"https://github.com/Adzz/yarn_command_action","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"ad5d5595701709c7deecfd9528bd5ed9681d5e8a"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/Adzz/yarn_command_action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Adzz%2Fyarn_command_action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Adzz%2Fyarn_command_action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Adzz%2Fyarn_command_action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Adzz%2Fyarn_command_action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Adzz","download_url":"https://codeload.github.com/Adzz/yarn_command_action/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Adzz%2Fyarn_command_action/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260427399,"owners_count":23007503,"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":["cd","ci","deployment","docker","github-action","github-actions","javascript","js","npm","npm-script","react","yarn"],"created_at":"2025-02-03T23:08:46.222Z","updated_at":"2026-02-23T23:16:18.467Z","avatar_url":"https://github.com/Adzz.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Javascript Command Github Action\n\nThis is a simple action to allow you to run any command defined in your package.json e.g. `yarn test` or `npm test`. This command will install packages if that has not been done first, then run the supplied command.\n\nCurrently uses node:16.13.1-alpine3.15 docker container.\n\n# Examples\n\n## Test - Create React App\n\nIf you are using the default create react app, ensure that you pass in the flag `--watchAll=false` so that jest doesn't enter interactive mode, otherwise the action will never finish.\n\n```yaml\non: [pull_request]\n\njobs:\n  tests:\n    name: run tests\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v2\n      - uses: Adzz/jest_test_action@v1.0.0\n        with:\n          command: test --watchAll=false\n```\n\nThis will default to using `yarn` and the `test` command specified in your `package.json`. Alternatively you can define a specific script there:\n\n```json\n \"scripts\": {\n    ...\n    \"test:ci\": \"react-scripts test --watchAll=false\",\n  },\n```\n\nThen do this:\n\n```yaml\non: [pull_request]\n\njobs:\n  tests:\n    name: run tests\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v2\n      - uses: Adzz/jest_test_action@v1.0.0\n        with:\n          command: test:ci\n```\n\n### Using NPM instead of yarn\n\n```yaml\non: [pull_request]\n\njobs:\n  tests:\n    name: run tests\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v2\n      - uses: Adzz/jest_test_action@v1.0.0\n        with:\n          package-manager: npm\n          command: test:ci\n```\n\n### Lint then test\n\nIn the `package.json`\n\n```json\n \"scripts\": {\n    ...\n    \"test:ci\": \"react-scripts test --watchAll=false\",\n    \"eslint\": \"eslint . --ext .js --ext .jsx --ext .gql --ext .graphql\",\n  },\n```\n\n```yaml\non: [pull_request]\n\njobs:\n  eslint:\n    name: run linter\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v2\n      - uses: Adzz/jest_test_action@v1.0.0\n        with:\n          command: eslint\n  tests:\n    name: run tests\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v2\n      - uses: Adzz/jest_test_action@v1.0.0\n        with:\n          command: test:ci\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadzz%2Fyarn_command_action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadzz%2Fyarn_command_action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadzz%2Fyarn_command_action/lists"}