Skip to content

adding items

adding items #133

---
name: Test JMeter Action
on:
push:
branches:
- master
- feature/*
pull_request:
branches: [master]
jobs:
action_build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Lint all YAML files in the directory
uses: ibiqlik/action-yamllint@master
- name: Run JMeter Action
uses: ./
with:
testFilePath: tests/sample_test.jmx
outputReportsFolder: reports/
args: "--loglevel INFO"
plugins: "jpgc-casutg"
- name: Run More Than One JMeter Action
uses: ./
with:
testFilePath: tests/
outputReportsFolder: reports/
args: "--loglevel INFO"
- uses: actions/upload-artifact@v1
with:
name: jmeter-test-results
path: reports/
image_scan:
needs: action_build
runs-on: ubuntu-latest
steps:
- name: Build Apache JMeter Image
uses: docker/build-push-action@v2
with:
push: false
tags: "localbuild/apache-jmeter-action:latest"
- name: Scan Apache JMeter Image
uses: anchore/scan-action@v2
id: scan
with:
image: "localbuild/apache-jmeter-action:latest"
acs-report-enable: true
# fail-build: false
# severity-cutoff: critical
- name: upload Anchore scan SARIF report
uses: github/codeql-action/upload-sarif@v1
with:
sarif_file: ${{ steps.scan.outputs.sarif }}
- name: Inspect action SARIF report
run: cat ${{ steps.scan.outputs.sarif }}