-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upload results of test audit as an artifact
- Loading branch information
1 parent
fe57c8f
commit 94c3d91
Showing
1 changed file
with
14 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |