Skip to content
This repository has been archived by the owner on Oct 27, 2021. It is now read-only.

Commit

Permalink
add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
filipesilva committed Dec 7, 2019
1 parent 600558a commit 0c86760
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 10 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Node CI

on:
pull_request: ~
push:
branches:
# These are the branches that we want CI to run on direct pushes.
# All other changes should go through PRs.
- master

jobs:
test:
runs-on: ubuntu
steps:
- uses: actions/checkout@v1
- name: Cache node_modules
uses: actions/cache@v1
with:
path: node_modules
key: node_modules-${{ hashFiles('yarn.lock') }}
restore-keys: |
node_modules-
- name: Cache maven
uses: actions/cache@v1
with:
path: ~/.m2
key: m2-${{ hashFiles('shadow-cljs.edn') }}
restore-keys: |
m2-
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Install
run: yarn
- name: Lint
run: yarn lint
- name: Test
run: yarn test:once
4 changes: 2 additions & 2 deletions package.json
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"clojars": "lein deploy clojars" "clojars": "lein deploy clojars"
}, },
"devDependencies": { "devDependencies": {
"clj-kondo": "2019.10.11-alpha.1", "clj-kondo": "2019.11.23",
"shadow-cljs": "~2.8.66" "shadow-cljs": "~2.8.81"
}, },
"dependencies": {} "dependencies": {}
} }
16 changes: 8 additions & 8 deletions yarn.lock
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -215,10 +215,10 @@ cipher-base@^1.0.0, cipher-base@^1.0.1, cipher-base@^1.0.3:
inherits "^2.0.1" inherits "^2.0.1"
safe-buffer "^5.0.1" safe-buffer "^5.0.1"


clj-kondo@2019.10.11-alpha.1: clj-kondo@2019.11.23:
version "2019.10.11-alpha.1" version "2019.11.23"
resolved "https://registry.yarnpkg.com/clj-kondo/-/clj-kondo-2019.10.11-alpha.1.tgz#a34b7ee076ac7469cf5c3e20622e17d345595d7e" resolved "https://registry.yarnpkg.com/clj-kondo/-/clj-kondo-2019.11.23.tgz#c892c593c86090f187694936973991c6a955e7fd"
integrity sha512-6doasyUSzwy6YlN+4Ke+cRt6dijmWavRretR51UVM5n8NnimOEzbR3bbNM6mnT1rtZYxwhCU/gfTgajxBWGoiQ== integrity sha512-M3wiZ3vQn89yVDzkX+S+ZEttivYl8aOSO3mqVhx50aNOXvC5+qY+gVaPvS9tVXIGSyWg3FQzYIjbtE0c/Nho8w==
dependencies: dependencies:
binwrap "^0.2.2" binwrap "^0.2.2"
request "^2.88.0" request "^2.88.0"
Expand Down Expand Up @@ -868,10 +868,10 @@ shadow-cljs-jar@1.3.1:
resolved "https://registry.yarnpkg.com/shadow-cljs-jar/-/shadow-cljs-jar-1.3.1.tgz#a5f8ab7664b40e11345837e4c6bce8e0ac9b2cc3" resolved "https://registry.yarnpkg.com/shadow-cljs-jar/-/shadow-cljs-jar-1.3.1.tgz#a5f8ab7664b40e11345837e4c6bce8e0ac9b2cc3"
integrity sha512-IJSm4Gfu/wWDsOQ0wNrSxuaGdjzsd78us+3bop3cpWsoO2Igdu6VIBItYrZHRRBKl5LIZKXfnSh/2eWG3C1EFw== integrity sha512-IJSm4Gfu/wWDsOQ0wNrSxuaGdjzsd78us+3bop3cpWsoO2Igdu6VIBItYrZHRRBKl5LIZKXfnSh/2eWG3C1EFw==


shadow-cljs@~2.8.66: shadow-cljs@~2.8.80:
version "2.8.69" version "2.8.81"
resolved "https://registry.yarnpkg.com/shadow-cljs/-/shadow-cljs-2.8.69.tgz#a646926ce0ba2b0b0f1086925a1048fdd69ebb08" resolved "https://registry.yarnpkg.com/shadow-cljs/-/shadow-cljs-2.8.81.tgz#d4f28313ef3d0023a9d7b9a0891ee0e124f0cfb8"
integrity sha512-lLAJ1uscKNmm+VBwZXM+YYHx9N/YzcKicqFtuVMID//AnOi8zlzEPwFjUjGWvzxZqrh6GLxzcAr18DR87Vo2tQ== integrity sha512-ux+S7yB2isXxna8/BHRkkp80C6fXPwVrKnDd0SfTbLgjUE9TMjqHCgsO0jLejw/cjjAzAvyG4uVLyK60NxIwEg==
dependencies: dependencies:
mkdirp "^0.5.1" mkdirp "^0.5.1"
node-libs-browser "^2.0.0" node-libs-browser "^2.0.0"
Expand Down

0 comments on commit 0c86760

Please sign in to comment.