Skip to content

Commit

Permalink
Updated CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasbuntinx committed Jan 29, 2021
1 parent 56ec2da commit 6ae0aea
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 4 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: BUILD

on:
pull_request:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
# SETUP
- uses: actions/checkout@v2

- name: Cache PureScript dependencies
uses: actions/cache@v2
with:
key: ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall') }}
path: .spago

- uses: actions/setup-node@v1
with:
node-version: "12.x"

- name: Install YARN
run: npm install -g yarn

- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
# yarn cache files are stored in `~/.cache/yarn` on Linux/macOS
path: ~/.cache/yarn
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install YARN dependencies
run: yarn install --frozen-lockfile

# BUILD
- name: Build source
run: yarn build

# TEST
- name: Run tests
run: yarn test
5 changes: 1 addition & 4 deletions .github/workflows/ci.yml → .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
name: CI
name: PUBLISH

on:
push:
branches: [master]
pull_request:
branches: [master]
types: [closed]
workflow_dispatch:

jobs:
Expand Down

0 comments on commit 6ae0aea

Please sign in to comment.