Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v6
with:
# Action runs: using: node20 as defined in
# Action runs: using: node24 as defined in
# https://github.com/cypress-io/github-action/blob/master/action.yml
# Node.js minor version is aligned to
# https://github.com/actions/runner/blob/main/src/Misc/externals.sh
node-version: 20.20.0
node-version: 24.13.0
- run: npm ci
- run: npm run format
- run: npm run build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/example-basic-pnpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
cache-dependency-path: examples/basic-pnpm/pnpm-lock.yaml

- name: Cypress tests
uses: ./ # if copying, replace with cypress-io/github-action@v6
uses: ./ # if copying, replace with cypress-io/github-action@v7
with:
working-directory: examples/basic-pnpm
# print information about detected browsers, etc
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/example-basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
uses: actions/checkout@v6

- name: Cypress tests
uses: ./ # if copying, replace with cypress-io/github-action@v6
uses: ./ # if copying, replace with cypress-io/github-action@v7
# the parameters below are only necessary
# because we are running these examples in a monorepo
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/example-build-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ name: example-build-artifacts
# uses: ./
# which runs the action code from the current branch.
# If you copy this workflow to another repo, replace the line with
# uses: cypress-io/github-action@v6
# uses: cypress-io/github-action@v7
on:
push:
branches:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/example-chrome-for-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
with:
chrome-version: 140
- name: Cypress info
uses: ./ # if copying, replace with cypress-io/github-action@v6
uses: ./ # if copying, replace with cypress-io/github-action@v7
with:
# just for full picture after installing Cypress
# print information about detected browsers, etc
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/example-chrome.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: example-chrome
# uses: ./
# which runs the action code from the current branch.
# If you copy this workflow to another repo, replace the line with
# uses: cypress-io/github-action@v6
# uses: cypress-io/github-action@v7
on:
push:
branches:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/example-component-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v6
- name: Cypress run
uses: ./ # if copying, replace with cypress-io/github-action@v6
uses: ./ # if copying, replace with cypress-io/github-action@v7
with:
working-directory: examples/component-tests
component: true
2 changes: 1 addition & 1 deletion .github/workflows/example-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: example-config
# uses: ./
# which runs the action code from the current branch.
# If you copy this workflow to another repo, replace the line with
# uses: cypress-io/github-action@v6
# uses: cypress-io/github-action@v7
on:
push:
branches:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/example-cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ jobs:
uses: actions/checkout@v6

- name: Cypress nightly tests 🌃
uses: ./ # if copying, replace with cypress-io/github-action@v6
uses: ./ # if copying, replace with cypress-io/github-action@v7
with:
working-directory: examples/basic
2 changes: 1 addition & 1 deletion .github/workflows/example-custom-ci-build-id.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ name: example-custom-ci-build-id
# uses: ./
# which runs the action code from the current branch.
# If you copy this workflow to another repo, replace the line with
# uses: cypress-io/github-action@v6
# uses: cypress-io/github-action@v7
on:
push:
branches:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/example-custom-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
uses: actions/checkout@v6

- name: Custom tests
uses: ./ # if copying, replace with cypress-io/github-action@v6
uses: ./ # if copying, replace with cypress-io/github-action@v7
with:
command: npm run custom-test
working-directory: examples/custom-command
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/example-debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name: example-debug
# uses: ./
# which runs the action code from the current branch.
# If you copy this workflow to another repo, replace the line with
# uses: cypress-io/github-action@v6
# uses: cypress-io/github-action@v7
on:
push:
branches:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/example-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v6
- name: Cypress tests
uses: ./ # if copying, replace with cypress-io/github-action@v6
uses: ./ # if copying, replace with cypress-io/github-action@v7
with:
working-directory: examples/basic
browser: ${{ matrix.browser }}
2 changes: 1 addition & 1 deletion .github/workflows/example-edge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
uses: actions/checkout@v6

- name: Cypress info
uses: ./ # if copying, replace with cypress-io/github-action@v6
uses: ./ # if copying, replace with cypress-io/github-action@v7
with:
# just for full picture after installing Cypress
# print information about detected browsers, etc
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/example-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: example-env
# uses: ./
# which runs the action code from the current branch.
# If you copy this workflow to another repo, replace the line with
# uses: cypress-io/github-action@v6
# uses: cypress-io/github-action@v7
on:
push:
branches:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/example-firefox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
uses: actions/checkout@v6

- name: Firefox
uses: ./ # if copying, replace with cypress-io/github-action@v6
uses: ./ # if copying, replace with cypress-io/github-action@v7
timeout-minutes: 3
with:
# let's show browser and system info
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/example-install-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
uses: actions/checkout@v6

- name: Custom Yarn command
uses: ./ # if copying, replace with cypress-io/github-action@v6
uses: ./ # if copying, replace with cypress-io/github-action@v7
with:
working-directory: examples/install-command
# https://classic.yarnpkg.com/en/docs/cli/install
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/example-install-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
run: npm install cypress@15.9.0 --save-dev

- name: Cypress tests 🧪
uses: ./ # if copying, replace with cypress-io/github-action@v6
uses: ./ # if copying, replace with cypress-io/github-action@v7
with:
working-directory: examples/install-only
install: false
2 changes: 1 addition & 1 deletion .github/workflows/example-node-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ jobs:
uses: actions/checkout@v6

- name: Cypress tests
uses: ./ # if copying, replace with cypress-io/github-action@v6
uses: ./ # if copying, replace with cypress-io/github-action@v7
with:
working-directory: examples/node-versions
2 changes: 1 addition & 1 deletion .github/workflows/example-quiet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
# Install npm dependencies, cache them correctly
# and run all Cypress tests with `quiet` parameter
- name: Cypress run
uses: ./ # if copying, replace with cypress-io/github-action@v6
uses: ./ # if copying, replace with cypress-io/github-action@v7
with:
working-directory: examples/quiet
quiet: true
2 changes: 1 addition & 1 deletion .github/workflows/example-recording.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name: example-recording
# uses: ./
# which runs the action code from the current branch.
# If you copy this workflow to another repo, replace the line with
# uses: cypress-io/github-action@v6
# uses: cypress-io/github-action@v7
on:
push:
branches:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/example-start-and-pnpm-workspaces.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: example-start-and-pnpm-workspaces
# uses: ./
# which runs the action code from the current branch.
# If you copy this workflow to another repo, replace the line with
# uses: cypress-io/github-action@v6
# uses: cypress-io/github-action@v7
on:
push:
branches:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/example-start-and-yarn-workspaces.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: example-start-and-yarn-workspaces
# uses: ./
# which runs the action code from the current branch.
# If you copy this workflow to another repo, replace the line with
# uses: cypress-io/github-action@v6
# uses: cypress-io/github-action@v7
on:
push:
branches:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/example-start.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: example-start
# uses: ./
# which runs the action code from the current branch.
# If you copy this workflow to another repo, replace the line with
# uses: cypress-io/github-action@v6
# uses: cypress-io/github-action@v7
on:
push:
branches:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/example-wait-on.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: example-wait-on
# uses: ./
# which runs the action code from the current branch.
# If you copy this workflow to another repo, replace the line with
# uses: cypress-io/github-action@v6
# uses: cypress-io/github-action@v7
on:
push:
branches:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/example-webpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
uses: actions/checkout@v6

- name: Cypress tests
uses: ./ # if copying, replace with cypress-io/github-action@v6
uses: ./ # if copying, replace with cypress-io/github-action@v7
with:
working-directory: examples/webpack
start: npm start
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/example-yarn-classic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ jobs:
uses: actions/checkout@v6

- name: Test with Yarn Classic
uses: ./ # if copying, replace with cypress-io/github-action@v6
uses: ./ # if copying, replace with cypress-io/github-action@v7
with:
working-directory: examples/yarn-classic
2 changes: 1 addition & 1 deletion .github/workflows/example-yarn-modern-pnp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
npm install -g corepack
corepack enable yarn
- name: Custom Yarn command
uses: ./ # if copying, replace with cypress-io/github-action@v6
uses: ./ # if copying, replace with cypress-io/github-action@v7
with:
working-directory: examples/yarn-modern-pnp
# https://yarnpkg.com/cli/install
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/example-yarn-modern.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
npm install -g corepack
corepack enable yarn
- name: Custom Yarn command
uses: ./ # if copying, replace with cypress-io/github-action@v6
uses: ./ # if copying, replace with cypress-io/github-action@v7
with:
working-directory: examples/yarn-modern
# https://yarnpkg.com/cli/install
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v6
with:
# Action runs: using: node20 as defined in
# Action runs: using: node24 as defined in
# https://github.com/cypress-io/github-action/blob/master/action.yml
# Node.js minor version is aligned to
# https://github.com/actions/runner/blob/main/src/Misc/externals.sh
node-version: 20.20.0
node-version: 24.13.0
- run: npm ci
# Core action code
- run: npm run format # Prettier formats core action code
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ See [Releases](https://github.com/cypress-io/github-action/releases) for full de

| Version | Changes |
| ------- | ------------------------------------------------------------------------------------------------------------ |
| v7.0.0 | Action runs under Node.js 24 instead of Node.js 20 |
| v6.10.0 | Examples remove Node.js 23. End of support for Node.js 23. |
| v6.9.0 | Add parameter validation for `command` |
| v6.8.0 | Examples remove Node.js 18. End of support for Node.js 18. |
Expand Down
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ which calls the action code from the branch they are running in when the workflo
From another (external) repository, the production version of the action is called with

```yaml
- uses: cypress-io/github-action@v6
- uses: cypress-io/github-action@v7
```

To test out a branch in development calling it from another repository, replace `v6` by the name of your branch. If your branch is in a fork, then also replace `cypress-io` by your own GitHub username in the form:
To test out a branch in development calling it from another repository, replace `v7` by the name of your branch. If your branch is in a fork, then also replace `cypress-io` by your own GitHub username in the form:

`- uses: <your-username>/github-action@<your-branch>`

Expand All @@ -123,7 +123,7 @@ This information is for Cypress.io Members or Collaborators who merge pull reque
BREAKING CHANGE: requires minimum Node.js 18 to run
```

1. New versions of this action will be released automatically by the CI when merged to the `master` branch, see [.github/workflows/main.yml](.github/workflows/main.yml). This will create a new [GitHub release](https://github.com/cypress-io/github-action/releases) and will update the current highest branch from the series `v5`, `v6`, ... etc. Thus specifying `uses: cypress-io/github-action@v6` (or higher version if available) selects the new version automatically. This **will not** push the latest release to GitHub Marketplace.
1. New versions of this action will be released automatically by the CI when merged to the `master` branch, see [.github/workflows/main.yml](.github/workflows/main.yml). This will create a new [GitHub release](https://github.com/cypress-io/github-action/releases) and will update the current highest branch from the series `v5`, `v6`, ... etc. Thus specifying `uses: cypress-io/github-action@v7` (or higher version if available) selects the new version automatically. This **will not** push the latest release to GitHub Marketplace.
1. The action's CI is configured to use the [default Angular release rules](https://github.com/semantic-release/commit-analyzer/blob/master/lib/default-release-rules.js). This means that only `feat:`, `fix:` and `perf:` trigger a new release which is then logged to the [releases](https://github.com/cypress-io/github-action/releases) page. Other Angular commit types listed on [Contributing to Angular](https://github.com/angular/angular/blob/main/CONTRIBUTING.md#-commit-message-format) can be used for documentation purposes, however they are ignored by the currently configured release process.

## GitHub Marketplace publication
Expand Down
Loading