Skip to content

Fix Github CI build and some minor linting issues. #322

Fix Github CI build and some minor linting issues.

Fix Github CI build and some minor linting issues. #322

Workflow file for this run

#
# Copyright 2022- IBM Inc. All rights reserved
# SPDX-License-Identifier: Apache2.0
#
name: CI
on:
pull_request:
push:
branches:
- main
tags:
- v*
jobs:
Build:
strategy:
fail-fast: true
matrix:
include:
- spark: 3.2.0
scala: 2.12.15
- spark: 3.2.0
scala: 2.13.5
- spark: 3.2.1
scala: 2.12.15
- spark: 3.2.1
scala: 2.13.5
- spark: 3.2.3
scala: 2.12.15
- spark: 3.2.3
scala: 2.13.5
- spark: 3.2.4
scala: 2.12.15
- spark: 3.2.4
scala: 2.13.5
- spark: 3.3.0
scala: 2.12.15
- spark: 3.3.0
scala: 2.13.8
- spark: 3.3.1
scala: 2.12.15
- spark: 3.3.1
scala: 2.13.8
- spark: 3.3.2
scala: 2.12.15
- spark: 3.3.2
scala: 2.13.8
- spark: 3.4.0
scala: 2.12.17
- spark: 3.4.0
scala: 2.13.8
- spark: 3.5.0
scala: 2.12.18
- spark: 3.5.0
scala: 2.13.8
runs-on: ubuntu-22.04 # Upgrading this version requires an additional sbt setup step.
env:
SPARK_VERSION: ${{ matrix.spark }}
SCALA_VERSION: ${{ matrix.scala }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup JDK
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 11
cache: sbt
- name: Check formatting
shell: bash
run: |-
echo "If either of these checks fail run: 'sbt scalafmtAll && sbt scalafmtSbt'"
sbt scalafmtSbtCheck
sbt scalafmtCheckAll
- name: Run tests
run: |-
sbt test

Check failure on line 77 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

You have an error in your yaml syntax on line 77
- name: Run tests with Spark Shuffle Fetch enabled
if: !startsWith(matrix.spark, '3.2.')
env:
USE_SPARK_SHUFFLE_FETCH: "true"
run: |-
sbt test
- name: Package
shell: bash
run: |-
rm -rf target
sbt package
sbt makePom
- name: Upload to maven
if: startsWith(github.ref, 'refs/tags/v')
shell: bash
run: ./.github/publish_maven.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload release
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v1
with:
files: target/scala*/*.jar