mirror of
https://github.com/PCSX2/pcsx2-net-www.git
synced 2026-01-31 01:15:16 +01:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v5...v6) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
128 lines
4.1 KiB
YAML
128 lines
4.1 KiB
YAML
name: Cypress Tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "main"
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
# TODO - there are improvements that can be made here in terms of caching
|
|
# https://docs.cypress.io/guides/continuous-integration/github-actions
|
|
# Keeping it simple for the beginning
|
|
|
|
jobs:
|
|
ui-chrome-tests:
|
|
if: ${{ github.event.pull_request.head.repo.full_name == 'PCSX2/pcsx2-net-www' && github.actor != 'dependabot[bot]' }}
|
|
name: "Chrome"
|
|
timeout-minutes: 15
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: xtvaser/cypress-with-hugo:node14.17.0-chrome91-ff89
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
|
|
# TODO - temporarily bypassed
|
|
|
|
# - name: "UI Tests - Chrome"
|
|
# uses: cypress-io/github-action@v2
|
|
# with:
|
|
# start: npm run hugo
|
|
# working-directory: tests
|
|
# wait-on: "http://localhost:1313"
|
|
# wait-on-timeout: 120
|
|
# browser: chrome
|
|
# record: true
|
|
# env:
|
|
# CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
|
|
# # Recommended: pass the GitHub token lets this action correctly
|
|
# # determine the unique run id necessary to re-run the checks
|
|
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
ui-chrome-tests-fork:
|
|
if: ${{ github.event.pull_request.head.repo.full_name != 'PCSX2/pcsx2-net-www' || github.actor == 'dependabot[bot]'}}
|
|
name: "Chrome | No Recording"
|
|
timeout-minutes: 15
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: xtvaser/cypress-with-hugo:node14.17.0-chrome91-ff89
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
|
|
# TODO - temporarily bypassed
|
|
|
|
# - name: "UI Tests - Chrome"
|
|
# uses: cypress-io/github-action@v2
|
|
# with:
|
|
# start: npm run hugo
|
|
# working-directory: tests
|
|
# wait-on: "http://localhost:1313"
|
|
# wait-on-timeout: 120
|
|
# browser: chrome
|
|
# record: false
|
|
# env:
|
|
# # Recommended: pass the GitHub token lets this action correctly
|
|
# # determine the unique run id necessary to re-run the checks
|
|
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
ui-firefox-tests:
|
|
if: ${{ github.event.pull_request.head.repo.full_name == 'PCSX2/pcsx2-net-www' && github.actor != 'dependabot[bot]' }}
|
|
name: "Firefox"
|
|
timeout-minutes: 15
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: xtvaser/cypress-with-hugo:node14.17.0-chrome91-ff89
|
|
options: --user 1001
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
|
|
# TODO - temporarily bypassed
|
|
|
|
# - name: "UI Tests - Firefox"
|
|
# uses: cypress-io/github-action@v2
|
|
# with:
|
|
# start: npm run hugo
|
|
# working-directory: tests
|
|
# wait-on: "http://localhost:1313"
|
|
# wait-on-timeout: 120
|
|
# browser: firefox
|
|
# record: true
|
|
# env:
|
|
# CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
|
|
# # Recommended: pass the GitHub token lets this action correctly
|
|
# # determine the unique run id necessary to re-run the checks
|
|
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
ui-firefox-tests-fork:
|
|
if: ${{ github.event.pull_request.head.repo.full_name != 'PCSX2/pcsx2-net-www' || github.actor == 'dependabot[bot]' }}
|
|
name: "Firefox | No Recording"
|
|
timeout-minutes: 15
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: xtvaser/cypress-with-hugo:node14.17.0-chrome91-ff89
|
|
options: --user 1001
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
|
|
# TODO - temporarily bypassed
|
|
|
|
# - name: "UI Tests - Firefox"
|
|
# uses: cypress-io/github-action@v2
|
|
# with:
|
|
# start: npm run hugo
|
|
# working-directory: tests
|
|
# wait-on: "http://localhost:1313"
|
|
# wait-on-timeout: 120
|
|
# browser: firefox
|
|
# record: false
|
|
# env:
|
|
# CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
|
|
# # Recommended: pass the GitHub token lets this action correctly
|
|
# # determine the unique run id necessary to re-run the checks
|
|
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|