Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

Commit

Permalink
workflow update
Browse files Browse the repository at this point in the history
  • Loading branch information
sang2925 committed Nov 14, 2022
1 parent 72a80f5 commit 8381d2e
Showing 1 changed file with 94 additions and 6 deletions.
100 changes: 94 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
if-no-files-found: error
path: dist

chrome:
RedTeamChrome:
runs-on: ubuntu-latest
container:
image: cypress/browsers:node18.12.0-chrome106-ff106
Expand All @@ -61,24 +61,25 @@ jobs:
name: dist
path: dist

- name: 'UI Tests - Chrome'
- name: 'Red Team Tests - Chrome'
uses: cypress-io/github-action@v4
with:
start: yarn start
wait-on: 'http://localhost:4000/api/graphql, http://localhost:3500'
browser: chrome
group: 'Chrome'
group: 'Red Team - Chrome'
working-directory: applications/redeye-e2e
config: baseUrl=http://localhost:3500
record: true
parallel: true
config-file: cypress.config.js
spec: src/integration/e2e/redteam/**/**/**/*.cy.js
env:
CYPRESS_PROJECT_ID: 'rsybgk'
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

firefox:
RedTeamFirefox:
runs-on: ubuntu-latest
container:
image: cypress/browsers:node18.12.0-chrome106-ff106
Expand All @@ -103,18 +104,105 @@ jobs:
name: dist
path: dist

- name: 'UI Tests - Firefox'
- name: 'Red Team Tests - Firefox'
uses: cypress-io/github-action@v4
with:
start: yarn start
wait-on: 'http://localhost:4000/api/graphql, http://localhost:3500'
browser: firefox
group: 'Firefox'
group: 'Red Team - Firefox'
working-directory: applications/redeye-e2e
config: baseUrl=http://localhost:3500
record: true
parallel: true
config-file: cypress.config.js
spec: src/integration/e2e/redteam/**/**/**/*.cy.js
env:
CYPRESS_PROJECT_ID: 'rsybgk'
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

BlueTeamChrome:
runs-on: ubuntu-latest
container:
image: cypress/browsers:node18.12.0-chrome106-ff106
options: --user 1001
needs: install
strategy:
fail-fast: false
matrix:
containers: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Cache
uses: actions/setup-node@v3
with:
cache: 'yarn'

- name: Download the build folders
uses: actions/download-artifact@v3
with:
name: dist
path: dist

- name: 'Blue Team Tests - Chrome'
uses: cypress-io/github-action@v4
with:
start: yarn start:blue
wait-on: 'http://localhost:4000/api/graphql, http://localhost:3500'
browser: chrome
group: 'Blue Team - Chrome'
working-directory: applications/redeye-e2e
config: baseUrl=http://localhost:3500
record: true
parallel: true
config-file: cypress.config.js
spec: src/integration/e2e/blueteam/**/*.cy.js
env:
CYPRESS_PROJECT_ID: 'rsybgk'
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

BlueTeamFirefox:
runs-on: ubuntu-latest
container:
image: cypress/browsers:node18.12.0-chrome106-ff106
options: --user 1001
needs: install
strategy:
fail-fast: false
matrix:
containers: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Cache
uses: actions/setup-node@v3
with:
cache: 'yarn'

- name: Download the build folders
uses: actions/download-artifact@v3
with:
name: dist
path: dist

- name: 'Blue Team Tests - Firefox'
uses: cypress-io/github-action@v4
with:
start: yarn start:blue
wait-on: 'http://localhost:4000/api/graphql, http://localhost:3500'
browser: firefox
group: 'Blue Team - Firefox'
working-directory: applications/redeye-e2e
config: baseUrl=http://localhost:3500
record: true
parallel: true
config-file: cypress.config.js
spec: src/integration/e2e/blueteam/**/*.cy.js
env:
CYPRESS_PROJECT_ID: 'rsybgk'
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
Expand Down

0 comments on commit 8381d2e

Please sign in to comment.