Skip to content

Commit

Permalink
added github test action
Browse files Browse the repository at this point in the history
  • Loading branch information
Q-back committed Jun 17, 2020
1 parent a4b5c6b commit 78a8b94
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This is tests workflow for GitHub Actions

name: Tests

on:
push:
branches: [ master, develop ]
pull_request:
branches: [ master, develop ]

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: prepare for Docker image build
run: |
cp ./extras/docker/Dockerfile ./
cp ./extras/docker/.dockerignore ./
- name: build Docker image
run: docker build -t andresriancho/w3af:test-action


test:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2

- name: run w3af tests
run: docker run -it andresriancho/w3af:test-action pytest

0 comments on commit 78a8b94

Please sign in to comment.