Skip to content

Commit

Permalink
Fixes CI and fixes tests on Java 16
Browse files Browse the repository at this point in the history
  • Loading branch information
erp12 committed Sep 14, 2021
1 parent 67ea247 commit 48fa81d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Clojure CI

on: [push, pull_request]
on: [push]

jobs:
build:
Expand All @@ -10,11 +10,11 @@ jobs:
java: [ '8', '16' ]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
- name: Prepare Java
uses: actions/setup-java@v2
with:
distribution: 'adopt'
distribution: 'temurin'
java-version: ${{ matrix.java }}
cache: 'maven'
- name: Clojure CLI
uses: DeLaGuardo/setup-clojure@master
with:
Expand Down
7 changes: 4 additions & 3 deletions test/erp12/fijit/alpha/reflect_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
[expectations.clojure.test :refer :all]
[erp12.fijit.alpha.reflect :as r]
[erp12.fijit.collection :as sc]
[erp12.fijit.version :as ver])
[erp12.fijit.version :as ver]
[clojure.set :as set])
(:import (java.time LocalDate)
(scala.collection.immutable Map Seq List)
(scala.reflect ClassTag)))
Expand All @@ -24,8 +25,8 @@
(expect "scala.collection.immutable.Map[java.lang.String,scala.collection.immutable.Seq[java.lang.Integer]]" (r/full-type-pr string->ints)))
(testing "querying type"
(testing "bases"
(expect '("class String" "trait CharSequence" "trait Comparable" "trait Serializable" "class Object" "class Any")
(map str (r/base-classes string)))
(is (set/subset? #{"class String" "trait CharSequence" "trait Comparable" "trait Serializable" "class Object" "class Any"}
(set (map str (r/base-classes string)))))
(expect (ver/by-scala-version :2.12 '("class Option" "trait Serializable" "trait Serializable" "trait Product" "trait Equals" "class Object" "class Any")
:2.13 '("class Option" "trait Serializable" "trait Product" "trait Equals" "trait IterableOnce" "class Object" "class Any"))
(map str (r/base-classes option-long))))
Expand Down

0 comments on commit 48fa81d

Please sign in to comment.