Skip to content

Merge pull request #35 from ucsb-cs156-s24/Sreeganesh-SchoolsCRUD-Delete #180

Merge pull request #35 from ucsb-cs156-s24/Sreeganesh-SchoolsCRUD-Delete

Merge pull request #35 from ucsb-cs156-s24/Sreeganesh-SchoolsCRUD-Delete #180

# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: "40-check-production-build: Check Production Build (if this fails, deploying to Dokku will fail)"
on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: szenius/set-timezone@v1.2
with:
timezoneLinux: "America/Los_Angeles"
- uses: actions/checkout@v3.5.2
- name: Set up Java (version from .java-version file)
uses: actions/setup-java@v3
with:
distribution: semeru # See: https://github.com/actions/setup-java#supported-distributions
java-version-file: ./.java-version
- name: Restore Maven cache
uses: skjolber/maven-cache-github-action@v1
with:
step: restore
- name: Build with Maven
env:
TEST_PROPERTIES: ${{ secrets.TEST_PROPERTIES }}
PRODUCTION: true
run: mvn -DskipTests clean dependency:list install
- name: Save Maven cache
uses: skjolber/maven-cache-github-action@v1
with:
step: save