diff --git a/.github/workflow/autotest.yml b/.github/workflow/autotest.yml deleted file mode 100644 index cf70902..0000000 --- a/.github/workflow/autotest.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: Automatic test - -on: - push: - branches: [dev, master] - pull_request: - branches: [dev, master] - -jobs: - test: - runs_on: ubuntu-latest - steps: - - name: Checkout source code - - uses: actions/checkout@v2 - - name: Build the image - run: docker build -t autotest . - - name: Run autotest - run: docker run autotest test - diff --git a/.github/workflows/autotest.yml b/.github/workflows/autotest.yml new file mode 100644 index 0000000..7986d38 --- /dev/null +++ b/.github/workflows/autotest.yml @@ -0,0 +1,28 @@ +name: Automatic test + +on: + push: + branches: [dev, master] + pull_request: + branches: [dev, master] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout source code + uses: actions/checkout@v2 + - name: Build the image + run: docker build -t autotest . + - name: Run autotest + run: docker run autotest test + - name: Run Trivy security scanner + uses: aquasecurity/trivy-action@master + with: + image-ref: 'autotest' + format: 'table' + exit-code: '1' + ignore-unfixed: true + severity: 'CRITICAL,HIGH' + +