From 30a014913b30e8493de16bd1d7a7bda9f710bd9f Mon Sep 17 00:00:00 2001 From: Q_back Date: Tue, 16 Jun 2020 20:50:46 +0200 Subject: [PATCH] docker try --- .github/workflows/tests.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1d8dd076bc..6cdbdd2b04 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,7 +8,6 @@ on: pull_request: branches: [ master, develop ] -# A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: build: runs-on: ubuntu-18.04 @@ -16,11 +15,13 @@ jobs: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 - - name: Run w3af - run: ./w3af_console + - name: prepare for Docker image build + run: | + cp ./extras/docker/Dockerfile ./ + cp ./extras/docker/.dockerignore ./ - - name: install deps - run: /tmp/w3af_dependency_install.sh + - name: build Docker image + run: docker build -t andresriancho/w3af:test-action test: @@ -28,6 +29,5 @@ jobs: steps: - uses: actions/checkout@v2 - # Runs a set of commands using the runners shell - - name: Run tests - run: pytest + - name: run w3af tests + run: docker run -it andresriancho/w3af:test-action pytest