-
Notifications
You must be signed in to change notification settings - Fork 540
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* starts working on action for tests * Update tests.yml * Update tests.yml * debugging script * adds testing gh action * updates changelog and contributing guide Co-authored-by: Rishabh <[email protected]>
- Loading branch information
1 parent
16ecb96
commit e02c2c1
Showing
3 changed files
with
55 additions
and
1 deletion.
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,40 @@ | ||
name: "Run tests" | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
coreRepoOwnerName: | ||
description: 'supertokens-core repo owner name' | ||
default: supertokens | ||
required: true | ||
pluginRepoOwnerName: | ||
description: 'supertokens-plugin-interface repo owner name' | ||
default: supertokens | ||
required: true | ||
pluginInterfaceBranch: | ||
description: 'supertokens-plugin-interface repos branch name' | ||
default: master | ||
required: true | ||
|
||
jobs: | ||
test_job: | ||
name: Run tests | ||
runs-on: ubuntu-latest | ||
container: rishabhpoddar/supertokens_core_testing | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Cloning supertokens-root | ||
run: cd ../ && git clone https://github.com/supertokens/supertokens-root.git | ||
- name: Update Java 1 | ||
run: update-alternatives --install "/usr/bin/java" "java" "/usr/java/jdk-15.0.1/bin/java" 2 | ||
- name: Update Java 2 | ||
run: update-alternatives --install "/usr/bin/javac" "javac" "/usr/java/jdk-15.0.1/bin/javac" 2 | ||
- name: Modifying modules.txt in supertokens-root | ||
run: cd ../supertokens-root && echo "core,master,${{ github.event.inputs.coreRepoOwnerName }}\nplugin-interface,${{ github.event.inputs.pluginInterfaceBranch }},${{ github.event.inputs.pluginRepoOwnerName }}" > modules.txt | ||
- name: Contents of modules.txt | ||
run: cat ../supertokens-root/modules.txt | ||
- name: Running loadModules in supertokens-root | ||
run: cd ../supertokens-root && ./loadModules | ||
- name: Copying current supertokens-core branch into supertokens-root | ||
run: cd ../supertokens-root && rm -rf ./supertokens-core && cp -r ../supertokens-core ./ | ||
- name: Building and running tests | ||
run: cd ../supertokens-root && ./startTestingEnv |
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