GitHub-Action: Run Action twice
Running it twice shows how fast the Action can be, when skipping versions that already exist inside the local maven repository. (Currently not being checked)
This commit is contained in:
parent
f88defe2ae
commit
ac639ec332
|
@ -14,20 +14,30 @@ jobs:
|
||||||
npm i
|
npm i
|
||||||
npm run build
|
npm run build
|
||||||
|
|
||||||
# Make sure the action works on a clean machine without building
|
# Make sure the action works on a clean machine without building it
|
||||||
run:
|
run:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
# Compile 2 spigot versions
|
||||||
- uses: ./
|
- uses: ./
|
||||||
with:
|
with:
|
||||||
versions: latest, 1.8
|
versions: latest, 1.8
|
||||||
|
|
||||||
|
# Run again. The Action should detect that the requested versions are already inside the local maven repo
|
||||||
|
- uses: ./
|
||||||
|
with:
|
||||||
|
# These versions should match the ones above
|
||||||
|
versions: latest, 1.8
|
||||||
|
|
||||||
# Run the original BuildTools in GitHub Actions to easily compare the build times etc.
|
# Run the original BuildTools in GitHub Actions to easily compare the build times etc.
|
||||||
original-run:
|
original-run:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Run original Spigot-BuildTools
|
- name: Run original Spigot-BuildTools
|
||||||
|
# These versions should match the ones from the 'run'-job
|
||||||
|
# Using '--compile Spigot' as this action does the same by default
|
||||||
run: |
|
run: |
|
||||||
wget https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar -O BuildTools.jar
|
wget https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar -O BuildTools.jar
|
||||||
java -jar BuildTools.jar --rev latest --compile Spigot
|
java -jar BuildTools.jar --rev latest --compile Spigot
|
||||||
|
|
Loading…
Reference in New Issue