Skip to content

Commit

Permalink
Merge pull request metosin#470 from metosin/feature/migrate-to-github…
Browse files Browse the repository at this point in the history
…-actions

Migrate to GitHub Actions
  • Loading branch information
Miikka Koskinen authored Feb 17, 2021
2 parents 03f029e + d80f103 commit e64490f
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 87 deletions.
86 changes: 0 additions & 86 deletions .circleci/config.yml

This file was deleted.

78 changes: 78 additions & 0 deletions .github/workflows/testsuite.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: testsuite

on:
push:
pull_request:

jobs:
build-clj:
strategy:
matrix:
# Supported Java versions: LTS releases 8 and 11 and the latest release
jdk: [8, 11, 15]

name: Clojure (Java ${{ matrix.jdk }})

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-clj-${{ hashFiles('**/project.clj') }}
restore-keys: |
${{ runner.os }}-clj-
- name: Setup Java ${{ matrix.jdk }}
uses: actions/[email protected]
with:
java-version: ${{ matrix.jdk }}
- name: Setup Clojure
uses: DeLaGuardo/[email protected]
with:
lein: 2.9.5
- name: Run tests
run: ./scripts/test.sh clj

build-cljs:
name: ClojureScript
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache dependencies
uses: actions/cache@v2
with:
path: |
~/.m2/repository
**/node_modules
key: ${{ runner.os }}-cljs-${{ hashFiles('**/project.clj', '**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-cljs-
- name: Setup Java 11
uses: actions/[email protected]
with:
java-version: 11
- name: Setup Clojure
uses: DeLaGuardo/[email protected]
with:
lein: 2.9.5
- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: 12
- name: Install dependencies
run: |
npm ci
- name: Install modules
run: ./scripts/lein-modules install
- name: Run tests
run: ./scripts/test.sh cljs

lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Verify cljdoc.edn
run: curl -fsSL https://raw.githubusercontent.com/cljdoc/cljdoc/master/script/verify-cljdoc-edn | bash -s doc/cljdoc.edn
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# reitit [![Build Status](https://img.shields.io/circleci/project/github/metosin/reitit.svg)](https://circleci.com/gh/metosin/reitit) [![cljdoc badge](https://cljdoc.org/badge/metosin/reitit)](https://cljdoc.org/jump/release/metosin/reitit) [![Slack](https://img.shields.io/badge/clojurians-reitit-blue.svg?logo=slack)](https://clojurians.slack.com/messages/reitit/)
# reitit [![Build Status](https://github.com/metosin/reitit/workflows/testsuite/badge.svg)](https://github.com/metosin/reitit/actions?query=workflow%3Atestsuite) [![cljdoc badge](https://cljdoc.org/badge/metosin/reitit)](https://cljdoc.org/jump/release/metosin/reitit) [![Slack](https://img.shields.io/badge/clojurians-reitit-blue.svg?logo=slack)](https://clojurians.slack.com/messages/reitit/)

A fast data-driven router for Clojure(Script).

Expand Down

0 comments on commit e64490f

Please sign in to comment.