Feature/firebase emulator config switch #1249
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: | |
- "main" | |
paths-ignore: | |
- '.gitignore' | |
- 'CODEOWNERS' | |
- 'LICENSE' | |
- 'README*' | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 17 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'npm' | |
cache-dependency-path: firebase-devservices/deployment/src/test/functions/package-lock.json | |
- uses: bahmutov/npm-install@v1 | |
with: | |
working-directory: firebase-devservices/deployment/src/test/functions | |
- name: Cache local Maven repository | |
uses: actions/cache@v2 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- name: Build with Maven | |
run: | | |
export CURRENT_USER=$(id -u) | |
export CURRENT_GROUP=$(id -g) | |
mvn -B formatter:validate install --file pom.xml | |
- name: Build in native | |
run: | | |
export CURRENT_USER=$(id -u) | |
export CURRENT_GROUP=$(id -g) | |
mvn -B -Pnative package --file integration-tests/main/pom.xml | |