Skip to content

Commit

Permalink
Merge pull request #30 from lumihq/github-actions
Browse files Browse the repository at this point in the history
Convert from travis to github actions
  • Loading branch information
mjrussell authored May 15, 2022
2 parents 6ebaa1d + 2b4eb36 commit cec272f
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 15 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up PureScript toolchain
uses: purescript-contrib/setup-purescript@main
with:
purescript: "0.14.0"

- name: Cache PureScript dependencies
uses: actions/cache@v2
with:
key: ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall') }}
path: |
.spago
output
- name: Set up Node toolchain
uses: actions/setup-node@v2
with:
node-version: "14.x"

- name: Cache NPM dependencies
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install NPM dependencies
run: npm install

- name: Install spago deps
run: npm run deps

- name: Build the project
run: npm run build
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

0 comments on commit cec272f

Please sign in to comment.