Added demo action #3
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
name: Test Traceable AST Init And Run Action With AST Scan Suite | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
InitAndRunAstScan: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Init and run scan action | |
uses: Traceableai/ast-action@main | |
with: | |
step_name: 'init and run' | |
client_scan_token: ${{ secrets.CLIENT_SCAN_TOKEN_DEMO }} | |
cli_version: 'latest' | |
scan_suite: 'demo-suite' | |
traceable_server: ${{ secrets.TRACEABLE_SERVER_DEMO }} | |
- name: Stop Scan | |
if: always() | |
uses: Traceableai/ast-action@main | |
with: | |
step_name: 'stop' | |
client_scan_token: ${{ secrets.CLIENT_SCAN_TOKEN_DEMO }} | |
traceable_server: ${{ secrets.TRACEABLE_SERVER_DEMO }} | |
- name: Dummy step | |
run: | | |
echo "Post stop scan" | |
functionalTest: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Run a loop as functional test | |
run: | | |
for ((i=1;i<=100;i++)); | |
do | |
echo $i | |
done |