Skip to content

Add Kotlin

Add Kotlin #28

name: Test, Build, Deploy and Publish
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Setup Elm
uses: jorelali/setup-elm@v1
with:
elm-version: 0.19.1
- uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- uses: actions/cache@v1
id: elm-cache
with:
path: ~/.elm
key: ${{ runner.os }}-elm--home-${{ hashFiles('**/elm.json') }}
- name: Test
run: |
npm install [email protected]
node node_modules/elm-test/bin/elm-test
- name: Build demo
run: |
cd demo
npm install
node build.js
cd ..
- name: Build themes page
run: |
cd demo/themes-page
elm make Main.elm --output elm-themes.js
node make-themes.js
cd ..
cp themes-page/themes.html build
cd ..
- name: Deploy demo
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: demo/build
clean: true