diff --git a/.github/workflows/test-traceable-ast-init-and-run-with-suite.yml b/.github/workflows/test-traceable-ast-init-and-run-with-suite.yml new file mode 100644 index 0000000..5f46b4d --- /dev/null +++ b/.github/workflows/test-traceable-ast-init-and-run-with-suite.yml @@ -0,0 +1,40 @@ +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' + traffic_env: 'crapi-demo1' + scan_suite: 'github-actions-test-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 }} + traffic_env: 'crapi-demo1' + traceable_server: ${{ secrets.TRACEABLE_SERVER_DEMO }} + 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