Skip to content

Merge pull request #86 from ucsb-cs156/w24-5pm-2 #1

Merge pull request #86 from ucsb-cs156/w24-5pm-2

Merge pull request #86 from ucsb-cs156/w24-5pm-2 #1

# 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 Heroku will fail)"
on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
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: Build with Maven
env:
TEST_PROPERTIES: ${{ secrets.TEST_PROPERTIES }}
PRODUCTION: true
run: mvn -DskipTests -Dgcf.skip clean dependency:list install