Skip to content

Commit

Permalink
docker try
Browse files Browse the repository at this point in the history
  • Loading branch information
Q-back committed Jun 16, 2020
1 parent 4b1be95 commit 46f31fe
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,26 @@ 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
steps:
# 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:
runs-on: ubuntu-18.04
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

0 comments on commit 46f31fe

Please sign in to comment.