Skip to content

Excise cruft and add GHA #1

Excise cruft and add GHA

Excise cruft and add GHA #1

Workflow file for this run

name: KBase Java Common tests
on:
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
push:
# run workflow when merging to main / master / develop
branches:
- main
- master
- develop
jobs:
java_common_tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- java: '8'
- java: '11'
steps:
- uses: actions/checkout@v4
- name: Setup java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{matrix.java}}
- name: Install dependencies and set up test config
shell: bash
run: |
export HOMEDIR=`pwd`
# move to parent dir of homedir to install binaries etc
cd ..
# set up jars
git clone https://github.com/kbase/jars
cd $HOMEDIR
- name: Run tests
run: |
make test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }

Check failure on line 57 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / KBase Java Common tests

Invalid workflow file

The workflow is not valid. .github/workflows/test.yml (Line: 57, Col: 18): The expression is not closed. An unescaped ${{ sequence was found, but the closing }} sequence was not found.
fail_ci_if_error: true