feat: add headers case preserve #4395
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: PR Check - Integration Tests | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '11' | |
distribution: 'adopt' | |
- name: Setup Go environment | |
uses: actions/setup-go@v2 | |
with: | |
go-version: '1.22.x' | |
- name: Create docker-compose alias script | |
run: | | |
echo '#!/bin/sh' | sudo tee /usr/bin/docker-compose | |
echo 'docker compose "$@"' | sudo tee -a /usr/bin/docker-compose | |
sudo chmod +x /usr/bin/docker-compose | |
- name: Print Docker version | |
run: | | |
docker version | |
docker compose version | |
docker-compose version | |
- name: Cache M2 Repo | |
uses: actions/cache@v1 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- name: Cache Go Modules | |
uses: actions/cache@v2 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- name: Extract Maven project version | |
run: echo ::set-output name=version::$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout) | |
id: extract-project-version | |
- name: Print Maven project version | |
run: echo ${{ steps.extract-project-version.outputs.version }} | |
- name: Generate proto API | |
run: sudo sh api/protogen.sh | |
- name: Check for uncommitted changes | |
run: | | |
if [[ `git status --porcelain` ]]; then | |
echo "There are uncommitted changes" | |
git status | |
exit 1 | |
else | |
echo "No changes" | |
fi | |
- name: Build with Maven | |
run: | | |
export GOFLAGS=-mod=mod | |
mvn clean install -PRelease -s .maven/settings.xml \ | |
-pl '!:integration' -pl '!:mock-backend-server' -pl '!:test-integration' | |
- name: Run integration tests | |
run: | | |
mvn clean install -PRelease -pl ':integration' -amd -s .maven/settings.xml |