Excise cruft and add GHA #1
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: 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 GitHub Actions / KBase Java Common testsInvalid workflow file
|
||
fail_ci_if_error: true |