Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

T#2462/oauth ci fialures #2491

Merged
merged 45 commits into from
Dec 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
a4f19a8
#2462 - run oauth CI on pull request
Nov 28, 2023
826ad4c
#2462 - test fixes
Nov 28, 2023
c7fdf20
#2462 - test fixes
Nov 30, 2023
deeb068
#2462 - test fixes
Nov 30, 2023
ce9f0f3
#2462 - test fixes
Nov 30, 2023
eb6e985
#2462 - test fixes
Nov 30, 2023
f67050a
#2462 - test fixes
Nov 30, 2023
3ee3e58
#2462 - test fixes
Nov 30, 2023
70452ec
#2462 - test fixes
Nov 30, 2023
445805c
#2462 - test fixes
Nov 30, 2023
7fe4990
#2462 - test fixes
Nov 30, 2023
6762749
#2462 - test fixes
Dec 1, 2023
95afe64
#2462 - test fixes
Dec 1, 2023
d80e6c9
#2462 - test fixes
Dec 1, 2023
50e65d8
#2462 - test fixes
Dec 1, 2023
e15ce0b
#2462 - test fixes
Dec 1, 2023
332d0a7
#2462 - test fixes
Dec 1, 2023
86af0d0
#2462 - test fixes
Dec 1, 2023
63fc081
#2462 - test fixes
Dec 1, 2023
a1b6c15
#2462 - test fixes
Dec 1, 2023
cd22a87
#2462 - test fixes
Dec 1, 2023
82dfa0d
#2462 - test fixes
Dec 1, 2023
b60f41d
#2462 - test fixes
Dec 1, 2023
c57d964
#2462 - test fixes
Dec 1, 2023
df2a75e
#2462 - test fixes
Dec 3, 2023
0ec2272
#2462 - test fixes
Dec 4, 2023
73e98c6
#2462 - test fixes
Dec 4, 2023
b857209
#2462 - test fixes
Dec 4, 2023
6e47cb2
#2462 - test fixes
Dec 4, 2023
b23b1cf
#2462 - test fixes
Dec 4, 2023
c7e5511
#2462 - test fixes
Dec 4, 2023
6c57b0c
#2462 - testing possible fixes
Dec 21, 2023
51ff602
#2462 - testing possible fixes
Dec 21, 2023
cc996bc
#2462 - testing possible fixes
Dec 21, 2023
2f47063
#2462 - testing possible fixes
Dec 21, 2023
48d5c27
#2462 - testing possible fixes
Dec 21, 2023
2fc86c2
#2462: trying cypress upgrade
Dec 22, 2023
748bfca
#2462: improved tests
Dec 22, 2023
a4be6fe
#2462: test running cypress tests natively
Dec 22, 2023
07a132f
#2462: test running cypress tests natively
Dec 22, 2023
91f233c
#2462: test running cypress tests natively
Dec 22, 2023
056de45
#2462: test running cypress tests natively
Dec 22, 2023
4a3167b
#2462: test all workflows
Dec 22, 2023
eb0ae04
#2462: clean up and bumped versions
Dec 22, 2023
8e65296
#2462: removed temp workflow
Dec 22, 2023
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
55 changes: 27 additions & 28 deletions .github/workflows/build-and-test-oauth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,24 @@ on:
schedule:
- cron: '0 6 * * *'
workflow_dispatch:

pull_request:
paths-ignore:
- 'README.md'

jobs:
build-skills-service-for-ui-tests:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: actions/setup-node@v2-beta
- uses: actions/setup-node@v3
with:
node-version: '14'

- uses: actions/setup-java@v1
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '19' # The JDK version to make available on the path.

- name: Print Versions
Expand All @@ -48,7 +51,7 @@ jobs:
java -version

- name: Cache local Maven repository
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
Expand All @@ -61,7 +64,7 @@ jobs:
run: mvn --batch-mode install -DskipTests

- name: upload service jar
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: service jar
path: ./service/target/*.jar
Expand All @@ -77,7 +80,7 @@ jobs:
fail-fast: false
matrix:
# run 6 copies of the current job in parallel
containers: [1, 2, 3, 4, 5, 6]
container: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]

services:
postgres:
Expand All @@ -101,28 +104,29 @@ jobs:
- name: Install Emoji Support
run: sudo apt-get install fonts-noto-color-emoji

- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Checkout skills-client
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
repository: NationalSecurityAgency/skills-client
path: skills-client

- uses: actions/setup-node@v2-beta
- uses: actions/setup-node@v3
with:
node-version: '14'

- uses: actions/setup-java@v1
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '19' # The JDK version to make available on the path.

- name: Print Versions
run: |
mvn --version
java -version

- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
with:
name: service jar
path: ./service/target/
Expand Down Expand Up @@ -165,26 +169,21 @@ jobs:
cd ..

- name: Run Cypress tests
uses: cypress-io/github-action@v4
with:
working-directory: e2e-tests
record: true
parallel: true
group: 'skills-service with OAuth'
tag: "${{ github.workflow }}"
env: oauthMode=true
browser: chrome
run: |
cd e2e-tests
../.github/scripts/runSubsetOfCypressTests.sh -t 20 -c ${{ matrix.container }}
cd ..
env:
# pass the Dashboard record key as an environment variable
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
# pass GitHub token to allow accurately detecting a build vs a re-run build
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ELECTRON_EXTRA_LAUNCH_ARGS: '--disable-gpu'
cypress_oauthMode: true

- name: upload result artifacts
if: ${{ always() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: CI result artifacts
name: UI test artifacts (${{ matrix.container }})
path: |
./e2e-tests/logs
./e2e-tests/cypress/visualRegression/diff
./e2e-tests/cypress/videos
./e2e-tests/cypress/screenshots
./e2e-tests/cypress/visualRegression/diff
Loading