Merge pull request #256 from metanorma/issue/255 #248
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: test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
continue-on-error: ${{ matrix.experimental }} | |
strategy: | |
fail-fast: false | |
matrix: | |
java: [ 1.8, 1.11 ] | |
os: [ ubuntu-latest, windows-latest, macos-latest ] | |
experimental: [ false ] | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
steps: | |
- uses: actions/checkout@master | |
- name: Set up JDK 1.8 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: ${{ matrix.java }} | |
- uses: actions/cache@v1 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.1 | |
- if: matrix.os == 'ubuntu-latest' | |
run: sudo gem install fontist | |
- if: matrix.os == 'windows-latest' | |
run: gem install rake --force | |
- if: matrix.os != 'ubuntu-latest' | |
run: gem install fontist | |
- run: | | |
fontist update | |
fontist manifest-install --confirm-license .github/mscorefonts.yml | |
- uses: actions/cache@v2 | |
with: | |
path: ~/.fontist | |
key: fontist-${{ runner.os }} | |
restore-keys: fontist-${{ runner.os }} | |
# - if: matrix.os == 'windows-latest' | |
# run: choco install --no-progress make | |
- run: make all | |
- run: make test |