diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..be8b985 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,35 @@ +name: Test + +on: + push: + branches: + - main + pull_request: + +jobs: + test: + timeout-minutes: 5 + strategy: + matrix: + jdk: ['8', '11', '17', '21', '22'] + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Cache local Maven repository + uses: actions/cache@v2 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/project.clj') }} + restore-keys: | + ${{ runner.os }}-maven- + - name: Prepare java + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: ${{ matrix.jdk }} + - name: Install clojure tools + uses: DeLaGuardo/setup-clojure@3.5 + with: + lein: 2.9.8 + - run: ./scripts/test