Skip to content

Commit

Permalink
Update workflows (#7)
Browse files Browse the repository at this point in the history
* update workflow versions

* update download-artifact to v4

* fix typo

* Update branch filter in cypress-tests.yml workflow to only run on main
  • Loading branch information
Rllyyy authored Apr 25, 2024
1 parent 0329d8e commit 213236b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/cypress-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Build project
uses: cypress-io/github-action@v5
uses: cypress-io/github-action@v6
with:
# Disable running of tests within install job
runTests: false
build: yarn run build

- name: Save build folder
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: build
if-no-files-found: error
Expand All @@ -39,17 +39,17 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Download the build folder
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: build
path: .next

- name: Cypress run e2e tests
# Uses the official Cypress GitHub action https://github.com/cypress-io/github-action
uses: cypress-io/github-action@v5
uses: cypress-io/github-action@v6
with:
# Starts web server for E2E tests - replace with your own server invocation
# https://docs.cypress.io/guides/continuous-integration/introduction#Boot-your-server
Expand Down Expand Up @@ -78,17 +78,17 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Download the build folder
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: build
path: .next

- name: Cypress run component tests
# Uses the official Cypress GitHub action https://github.com/cypress-io/github-action
uses: cypress-io/github-action@v5
uses: cypress-io/github-action@v6
with:
# Records to Cypress Cloud
# https://docs.cypress.io/guides/cloud/projects#Set-up-a-project-to-record
Expand Down

0 comments on commit 213236b

Please sign in to comment.