Cleaned up pom, added simple quality test action on push usable for forks of the repo
This commit is contained in:
parent
0c285eef5b
commit
9403bbb851
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@ -46,12 +46,12 @@ jobs:
|
|||||||
run: mvn clean install
|
run: mvn clean install
|
||||||
|
|
||||||
notify-slack:
|
notify-slack:
|
||||||
if: github.event_name == 'push' && (success() || failure())
|
if: github.repository == 'WebGoat/WebGoat' && github.event_name == 'push' && (success() || failure())
|
||||||
needs:
|
needs:
|
||||||
- build
|
- build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: "Slack workflow notification"
|
- name: "Slack workflow notification fork test"
|
||||||
uses: Gamesight/slack-workflow-status@master
|
uses: Gamesight/slack-workflow-status@master
|
||||||
with:
|
with:
|
||||||
repo_token: ${{secrets.GITHUB_TOKEN}}
|
repo_token: ${{secrets.GITHUB_TOKEN}}
|
||||||
|
52
.github/workflows/quality_checks.yml
vendored
Normal file
52
.github/workflows/quality_checks.yml
vendored
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
name: "Testing and linting"
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches-ignore:
|
||||||
|
- master
|
||||||
|
- develop
|
||||||
|
- release/*
|
||||||
|
jobs:
|
||||||
|
install-notest:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: "Package and linting"
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: set up JDK 15
|
||||||
|
uses: actions/setup-java@v2
|
||||||
|
with:
|
||||||
|
distribution: 'zulu'
|
||||||
|
java-version: 15
|
||||||
|
architecture: x64
|
||||||
|
- name: Cache Maven packages
|
||||||
|
uses: actions/cache@v2.1.5
|
||||||
|
with:
|
||||||
|
path: ~/.m2
|
||||||
|
key: ubuntu-latest-m2-${{ hashFiles('**/pom.xml') }}
|
||||||
|
restore-keys: ubuntu-latest-m2
|
||||||
|
- name: Test with Maven
|
||||||
|
run: mvn clean install -DskipTests
|
||||||
|
|
||||||
|
testing:
|
||||||
|
needs: install-notest
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
args:
|
||||||
|
- mvn -pl '!webgoat-integration-tests' test
|
||||||
|
- mvn -pl webgoat-integration-tests test
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: set up JDK 15
|
||||||
|
uses: actions/setup-java@v2
|
||||||
|
with:
|
||||||
|
distribution: 'zulu'
|
||||||
|
java-version: 15
|
||||||
|
architecture: x64
|
||||||
|
- name: Cache Maven packages
|
||||||
|
uses: actions/cache@v2.1.5
|
||||||
|
with:
|
||||||
|
path: ~/.m2
|
||||||
|
key: ubuntu-latest-m2-${{ hashFiles('**/pom.xml') }}
|
||||||
|
restore-keys: ubuntu-latest-m2
|
||||||
|
- name: Test with Maven
|
||||||
|
run: ${{ matrix.args }}
|
2
.github/workflows/rebase.yml
vendored
2
.github/workflows/rebase.yml
vendored
@ -5,7 +5,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
rebase:
|
rebase:
|
||||||
name: Rebase
|
name: Rebase
|
||||||
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase') && github.event.comment.author_association == 'MEMBER'
|
if: github.repository == 'WebGoat/WebGoat' && github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase') && github.event.comment.author_association == 'MEMBER'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout the latest code
|
- name: Checkout the latest code
|
||||||
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -5,6 +5,7 @@ on:
|
|||||||
- v*
|
- v*
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
|
if: github.repository == 'WebGoat/WebGoat'
|
||||||
name: Release WebGoat
|
name: Release WebGoat
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment:
|
environment:
|
||||||
@ -103,6 +104,7 @@ jobs:
|
|||||||
- name: "Image digest"
|
- name: "Image digest"
|
||||||
run: echo ${{ steps.docker_build.outputs.digest }}
|
run: echo ${{ steps.docker_build.outputs.digest }}
|
||||||
new_version:
|
new_version:
|
||||||
|
if: github.repository == 'WebGoat/WebGoat'
|
||||||
name: Update development version
|
name: Update development version
|
||||||
needs: [ release ]
|
needs: [ release ]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
1
.github/workflows/welcome.yml
vendored
1
.github/workflows/welcome.yml
vendored
@ -7,6 +7,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
greeting:
|
greeting:
|
||||||
|
if: github.repository == 'WebGoat/WebGoat'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/first-interaction@v1.1.0
|
- uses: actions/first-interaction@v1.1.0
|
||||||
|
5
pom.xml
5
pom.xml
@ -110,11 +110,6 @@
|
|||||||
<url>https://github.com/WebGoat/WebGoat/issues</url>
|
<url>https://github.com/WebGoat/WebGoat/issues</url>
|
||||||
</issueManagement>
|
</issueManagement>
|
||||||
|
|
||||||
<ciManagement>
|
|
||||||
<system>Travis CI</system>
|
|
||||||
<url>https://travis-ci.org/WebGoat/WebGoat</url>
|
|
||||||
</ciManagement>
|
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<!-- Use UTF-8 Encoding -->
|
<!-- Use UTF-8 Encoding -->
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user