Revert "Generate Coral's RelNode for views from base table schema (#409) #1286
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
# | ||
# CI build that assembles artifacts and runs tests. | ||
# If validation is successful this workflow releases from the main dev branch. | ||
# | ||
# - skipping CI: add [skip ci] to the commit message | ||
# - skipping release: add [skip release] to the commit message | ||
# | ||
name: CI | ||
on: | ||
push: | ||
branches: ['master', 'li-trino-hotfix'] | ||
tags-ignore: [v*] # release tags are autogenerated after a successful CI, no need to run CI against them | ||
pull_request: | ||
branches: ['**'] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')" | ||
steps: | ||
- name: 1. Check out code | ||
uses: actions/checkout@v2 # https://github.com/actions/checkout | ||
with: | ||
fetch-depth: '0' # https://github.com/shipkit/shipkit-changelog#fetch-depth-on-ci | ||
- name: 2. Set up Java | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
- name: 3. Perform build | ||
run: ./gradlew -i build | ||
- name: 4. Perform release for master branch if commit is on master | ||
# Release job, only for pushes to the main development branch | ||
if: github.event_name == 'push' | ||
&& github.ref == 'refs/heads/master' | ||
&& github.repository == 'linkedin/coral' | ||
&& !contains(toJSON(github.event.commits.*.message), '[skip release]') | ||
run: ./gradlew githubRelease publishToSonatype closeAndReleaseStagingRepository --stacktrace | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
SONATYPE_USER: ${{secrets.SONATYPE_USER}} | ||
SONATYPE_PWD: ${{secrets.SONATYPE_PWD}} | ||
PGP_KEY: ${{secrets.PGP_KEY}} | ||
PGP_PWD: ${{secrets.PGP_PWD}} | ||
- name: 5. Derive version for li-trino-hotfix | ||
if: github.ref == 'refs/heads/li-trino-hotfix' | ||
run: | | ||
branch_name="${{ github.ref#refs/heads/ }}" | ||
echo "branch_name=${branch_name}" >> $GITHUB_ENV | ||
echo "DERIVED_VERSION=2.2.27-${branch_name}" >> $GITHUB_ENV | ||
- name: 6. Perform release for li-trino-hotfix branch if commit is this branch | ||
# Release job, only for pushes to the main development branch | ||
if: github.event_name == 'push' | ||
&& github.ref == 'refs/heads/li-trino-hotfix' | ||
&& github.repository == 'linkedin/coral' | ||
&& !contains(toJSON(github.event.commits.*.message), '[skip release]') | ||
run: ./gradlew githubRelease publishToSonatype closeAndReleaseStagingRepository --stacktrace -Pversion="${{ env.DERIVED_VERSION }}" | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
SONATYPE_USER: ${{secrets.SONATYPE_USER}} | ||
SONATYPE_PWD: ${{secrets.SONATYPE_PWD}} | ||
PGP_KEY: ${{secrets.PGP_KEY}} | ||
PGP_PWD: ${{secrets.PGP_PWD}} | ||