-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update and rename blank.yml to creoide_workflow.yml
- Loading branch information
Showing
2 changed files
with
67 additions
and
36 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,67 @@ | ||
name: CreoIDE Workflow | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
CreoIDE-Analysis: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install CreoIDE | ||
run: | | ||
wget https://creoide.com/download/creoide-latest-linux.tar.gz | ||
tar -xf creoide-latest-linux.tar.gz | ||
mv creoide-latest-linux creoide | ||
export PATH=$PATH:$PWD/creoide/bin | ||
- name: Connect to GitHub | ||
run: | | ||
creoide auth github -u $GITHUB_USERNAME -p $GITHUB_TOKEN | ||
- name: Analyze Code | ||
run: | | ||
creoide analyze $GITHUB_WORKSPACE -p creoide_config.json | ||
- name: Report Results | ||
run: | | ||
creoide report -f creoide_results.json | ||
CreoIDE-Testing: | ||
runs-on: ubuntu-latest | ||
needs: CreoIDE-Analysis | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install CreoIDE | ||
run: | | ||
wget https://creoide.com/download/creoide-latest-linux.tar.gz | ||
tar -xf creoide-latest-linux.tar.gz | ||
mv creoide-latest-linux creoide | ||
export PATH=$PATH:$PWD/creoide/bin | ||
- name: Connect to GitHub | ||
run: | | ||
creoide auth github -u $GITHUB_USERNAME -p $GITHUB_TOKEN | ||
- name: Run Tests | ||
run: | | ||
creoide test $GITHUB_WORKSPACE -t creoide_test_config.json | ||
- name: Report Results | ||
run: | | ||
creoide report -f creoide_test_results.json | ||
CreoIDE-Deployment: | ||
runs-on: ubuntu-latest | ||
needs: CreoIDE-Testing | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install CreoIDE | ||
run: | | ||
wget https://creoide.com/download/creoide-latest-linux.tar.gz | ||
tar -xf creoide-latest-linux.tar.gz | ||
mv creoide-latest-linux creoide | ||
export PATH=$PATH:$PWD/creoide/bin | ||
- name: Connect to GitHub | ||
run: | | ||
creoide auth github -u $GITHUB_USERNAME -p $GITHUB_TOKEN | ||
- name: Deploy to Production | ||
run: | | ||
creoide deploy $GITHUB_WORKSPACE -d creoide_deployment_config.json |