CI: test on JDK 8 and 11 (#757)

This commit is contained in:
Enno Runne 2022-01-27 17:01:15 +01:00 committed by GitHub
parent 141b79f99b
commit 80725b89ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 46 deletions

View File

@ -4,15 +4,14 @@ on:
push: push:
jobs: jobs:
test: test:
runs-on: ubuntu-latest
if: github.repository == 'lightbend/config'
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
include: include:
- os: ubuntu-latest - java: 8
java: 8 - java: 11
- os: windows-latest
java: 17
runs-on: ${{ matrix.os }}
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
@ -23,4 +22,4 @@ jobs:
java-version: ${{ matrix.java }} java-version: ${{ matrix.java }}
- name: Build and test - name: Build and test
shell: bash shell: bash
run: sbt -v +test +doc run: sbt -v test doc

View File

@ -1,32 +0,0 @@
# use Docker-based container (instead of OpenVZ)
sudo: false
language: scala
before_install: curl -Ls https://git.io/jabba | bash && . ~/.jabba/jabba.sh
install: jabba install "adopt@~1.$TRAVIS_JDK.0-0" && jabba use "$_" && java -Xmx32m -version
jobs:
include:
- stage: jdk8
name: "test and docs on jdk8"
script: sbt ++$TRAVIS_SCALA_VERSION test doc
- stage: jdk11
name: "test and docs on jdk11"
script: sbt ++$TRAVIS_SCALA_VERSION test doc
env: TRAVIS_JDK=11
env:
global:
- TRAVIS_JDK=8
before_cache:
# Remove to avoid unnecessary cache updates
- find $HOME/.sbt -name "*.lock" -delete
- find $HOME/.ivy2 -name "ivydata-*.properties" -delete
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt/boot
- $HOME/.jabba/jdk

View File

@ -1,7 +1,7 @@
Configuration library for JVM languages. Configuration library for JVM languages.
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.typesafe/config/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.typesafe/config) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.typesafe/config/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.typesafe/config)
[![Build Status](https://travis-ci.org/lightbend/config.svg?branch=master)](https://travis-ci.org/lightbend/config) [![Build Status](https://github.com/lightbend/config/actions/workflows/ci.yml/badge.svg)](https://github.com/lightbend/config/actions/workflows/ci.yml)
If you have questions or are working on a pull request or just If you have questions or are working on a pull request or just
curious, please feel welcome to join the chat room: curious, please feel welcome to join the chat room:
@ -120,7 +120,7 @@ Link for direct download if you don't use a dependency manager:
### Release Notes ### Release Notes
Please see NEWS.md in this directory, Please see NEWS.md in this directory,
https://github.com/lightbend/config/blob/master/NEWS.md https://github.com/lightbend/config/blob/main/NEWS.md
### API docs ### API docs
@ -128,7 +128,7 @@ https://github.com/lightbend/config/blob/master/NEWS.md
- also published in jar form - also published in jar form
- consider reading this README first for an intro - consider reading this README first for an intro
- for questions about the `.conf` file format, read - for questions about the `.conf` file format, read
[HOCON.md](https://github.com/lightbend/config/blob/master/HOCON.md) [HOCON.md](https://github.com/lightbend/config/blob/main/HOCON.md)
in this directory in this directory
### Bugs and Patches ### Bugs and Patches
@ -142,7 +142,7 @@ account - it takes 30 seconds. You can do this at
https://www.lightbend.com/contribute/cla https://www.lightbend.com/contribute/cla
Please see Please see
[CONTRIBUTING](https://github.com/lightbend/config/blob/master/CONTRIBUTING.md) [CONTRIBUTING](https://github.com/lightbend/config/blob/main/CONTRIBUTING.md)
for more including how to make a release. for more including how to make a release.
### Build ### Build
@ -163,7 +163,7 @@ Scala dependency.
### Longer Examples ### Longer Examples
See the examples in the `examples/` [directory](https://github.com/lightbend/config/tree/master/examples). See the examples in the `examples/` [directory](https://github.com/lightbend/config/tree/main/examples).
You can run these from the sbt console with the commands `project You can run these from the sbt console with the commands `project
config-simple-app-java` and then `run`. config-simple-app-java` and then `run`.
@ -436,7 +436,7 @@ this:
Using the `Config` interface, you could write Using the `Config` interface, you could write
`conf.getInt("foo.bar")`. The `foo.bar` string is called a _path `conf.getInt("foo.bar")`. The `foo.bar` string is called a _path
expression_ expression_
([HOCON.md](https://github.com/lightbend/config/blob/master/HOCON.md) ([HOCON.md](https://github.com/lightbend/config/blob/main/HOCON.md)
has the syntax details for these expressions). Iterating over this has the syntax details for these expressions). Iterating over this
`Config`, you would get two entries; `"foo.bar" : 42` and `Config`, you would get two entries; `"foo.bar" : 42` and
`"foo.baz" : 43`. When iterating a `Config` you will not find `"foo.baz" : 43`. When iterating a `Config` you will not find
@ -492,7 +492,7 @@ particular value manually).
The JSON superset is called "Human-Optimized Config Object The JSON superset is called "Human-Optimized Config Object
Notation" or HOCON, and files use the suffix `.conf`. See Notation" or HOCON, and files use the suffix `.conf`. See
[HOCON.md](https://github.com/lightbend/config/blob/master/HOCON.md) [HOCON.md](https://github.com/lightbend/config/blob/main/HOCON.md)
in this directory for more detail. in this directory for more detail.
After processing a `.conf` file, the result is always just a JSON After processing a `.conf` file, the result is always just a JSON
@ -803,7 +803,7 @@ have expressed interest in a branch off of 1.3.x supporting
Java 7. If you want to work on that branch you might bring it up Java 7. If you want to work on that branch you might bring it up
on [chat](https://gitter.im/lightbend/config). We can release a on [chat](https://gitter.im/lightbend/config). We can release a
jar for Java 7 if someone(s) steps up to maintain the branch. The jar for Java 7 if someone(s) steps up to maintain the branch. The
master branch does not use Java 8 "gratuitously" but some APIs main branch does not use Java 8 "gratuitously" but some APIs
that use Java 8 types will need to be removed. that use Java 8 types will need to be removed.
### Rationale for Supported File Formats ### Rationale for Supported File Formats