-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add config for e2e sql tests (#12762)
- Loading branch information
1 parent
2ae2446
commit d7666b7
Showing
4 changed files
with
119 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: E2E Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- release | ||
- v9-migration | ||
pull_request: | ||
branches: | ||
- master | ||
- release | ||
- v9-migration | ||
schedule: | ||
- cron: "0 0 * * *" #end of every day | ||
jobs: | ||
E2E-testing: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false #ensure both tests run even if one fails | ||
matrix: | ||
browser: [firefox] | ||
tests: [stable, unstable] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '11' | ||
- name: Cache Gradle packages | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- name: Update Property File | ||
run: mv src/e2e/resources/test.ci-${{ matrix.browser }}.properties src/e2e/resources/test.properties | ||
- name: Run Solr search service + local Datastore emulator | ||
run: docker-compose up -d | ||
- name: Create Config Files | ||
run: ./gradlew createConfigs testClasses generateTypes | ||
- name: Install Frontend Dependencies | ||
run: npm ci | ||
- name: Build Frontend Bundle | ||
run: npm run build | ||
- name: Start Server | ||
run: | | ||
./gradlew serverRun & | ||
./wait-for-server.sh | ||
- name: Start Tests | ||
run: xvfb-run --server-args="-screen 0 1024x768x24" ./gradlew -P${{ matrix.tests }} e2eTestsSql | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE suite SYSTEM "https://testng.org/testng-1.0.dtd"> | ||
<suite name="e2e-tests-sql" parallel="tests" thread-count="2"> | ||
<test name="e2e-tests-sql" parallel="classes"> | ||
<packages> | ||
<package name="teammates.e2e.util" /> | ||
</packages> | ||
<classes> | ||
<class name="teammates.e2e.sql.StudentHomePageE2ETest" /> | ||
</classes> | ||
</test> | ||
</suite> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE suite SYSTEM "https://testng.org/testng-1.0.dtd"> | ||
<suite name="e2e-unstable-tests-sql" parallel="tests" thread-count="2"> | ||
<test name="e2e-unstable-tests-sql" parallel="classes"> | ||
<packages> | ||
<package name="teammates.e2e.util" /> | ||
</packages> | ||
<classes> | ||
</classes> | ||
</test> | ||
</suite> |