Last active
March 21, 2021 03:54
-
-
Save eed3si9n/4276630c916f9eeed6b4e63ab7835bd1 to your computer and use it in GitHub Desktop.
Preparatory GitHub Actions
This file contains hidden or 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: CI | |
on: | |
pull_request: | |
push: | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- os: ubuntu-latest | |
java: 8 | |
jobtype: 1 | |
- os: ubuntu-latest | |
java: 11 | |
jobtype: 1 | |
runs-on: ${{ matrix.os }} | |
env: | |
# define Java options for both official sbt and sbt-extras | |
JAVA_OPTS: -Xms2048M -Xmx2048M -Xss6M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8 | |
JVM_OPTS: -Xms2048M -Xmx2048M -Xss6M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup | |
uses: olafurpg/setup-scala@v10 | |
with: | |
java-version: "adopt@1.${{ matrix.java }}" | |
- name: Coursier cache | |
uses: coursier/cache-action@v6 | |
- name: Build and test | |
run: echo hello GitHub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment