Skip to content

Commit

Permalink
Upload results of test audit as an artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
jakejarvis committed Sep 17, 2019
1 parent fe57c8f commit 94c3d91
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
name: Test the action
name: Test Audit
on: [push, pull_request]

jobs:
test:
name: Test the action
audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
# Use the newer Dockerfile.base, not the one that was used to build on DockerHub
- name: Build the base Docker image
run: docker build . --file Dockerfile.base --tag jakejarvis/chrome-headless
# This will run Dockerfile like normal, but instead of jakejarvis/chrome-headless from DockerHub we use the one built here
- uses: ./
name: Run the app
with:
url: 'https://google.com'
- uses: actions/checkout@master
- name: Build Dockerfile.base
run: docker build . --file Dockerfile.base --tag jakejarvis/chrome-headless:latest
- name: Run audit on https://github.com/
uses: ./
with:
url: 'https://github.com/'
- uses: actions/upload-artifact@master
with:
name: report
path: './report'

0 comments on commit 94c3d91

Please sign in to comment.