All checks were successful
/ Build and Release Application (push) Successful in 1m20s
Reviewed-on: #1
40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
on:
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
|
|
jobs:
|
|
library_snapshot:
|
|
runs-on: docker
|
|
container:
|
|
image: registry.garrity.co:8443/gs/ci-scala:latest
|
|
name: 'Build and Test Application Snapshot'
|
|
env:
|
|
GS_MAVEN_USER: ${{ vars.GS_MAVEN_USER }}
|
|
GS_MAVEN_TOKEN: ${{ secrets.GS_MAVEN_TOKEN }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
name: 'Checkout Repository'
|
|
with:
|
|
fetch-depth: 0
|
|
- name: 'Pre-Commit'
|
|
run: |
|
|
pre-commit install
|
|
pre-commit run --all-files
|
|
- name: 'Prepare Versioned Build'
|
|
run: |
|
|
latest_git_tag="$(git describe --tags --abbrev=0 || echo 'No Tags')"
|
|
latest_commit_message="$(git show -s --format=%s HEAD)"
|
|
echo "Previous Git Tag: $latest_git_tag"
|
|
echo "Latest Commit: $latest_commit_message (SNAPSHOT)"
|
|
sbtn -Dsnapshot=true "api/calVerInfo"
|
|
- name: 'Unit Tests and Code Coverage'
|
|
run: |
|
|
sbtn clean
|
|
sbtn coverage
|
|
sbtn test
|
|
sbtn coverageReport
|
|
sbtn coverageAggregate
|