Skip to content

Remove .travis.yml

Remove .travis.yml #68

name: CI
on:
pull_request:
push:
branches:
- main
- release-*
tags-ignore: ["v*"]
permissions:
contents: read
jobs:
test:
name: Build and Test
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
include:
- { sbtCrossVersion: "1.4.9", jvmName: "temurin:1.11.0" }
# { jvmName: "temurin:1.11.0" }
# { jvmName: "temurin:1.17.0" }
steps:
- name: Checkout
uses: actions/checkout@v3.1.0
- name: Cache Coursier cache
uses: coursier/cache-action@v6.4.1
# - name: Install Node
# uses: actions/setup-node@v1
# with:
# node-version: v16.x
- name: Ruby caches
uses: actions/cache@v3
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Set up JDK ${{ matrix.jvmName }}
uses: coursier/setup-action@v1.3.0
with:
jvm: ${{ matrix.jvmName }}
- name: Install Jekyll, Nanoc, Asciidoctor
run: |-
sudo gem install jekyll:3.8.4 nanoc:4.0.2 asciidoctor --no-document
# npm install -g gitbook-cli@2.3.2
# gitbook install 3.2.3
# - name: Install Hugo 0.20
# run: |-
# mkdir download
# wget https://github.com/gohugoio/hugo/releases/download/v0.20.1/hugo_0.20.1_linux-64bit.tar.gz -O download/hugo.tgz
# tar xvf download/hugo.tgz
# mkdir ${PWD}/bin
# export PATH=${PATH}:${PWD}/bin
# mv hugo_0.20.1_linux_amd64/hugo_0.20.1_linux_amd64 ${PWD}/bin/hugo
# chmod +x ${PWD}/bin/hugo
- name: sbt runScriptedTest
run: sbt ";^^${{ matrix.sbtCrossVersion }}; test; scripted; makeSite"