Skip to content

Commit 0400f09

Browse files
committed
Restructuring project
1 parent 90fd90c commit 0400f09

File tree

8 files changed

+75
-20
lines changed

8 files changed

+75
-20
lines changed

.github/workflows/build.yml

-16
This file was deleted.

.github/workflows/ci.yml

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [master]
6+
paths:
7+
- 'examples/**/*.purs'
8+
- 'examples/**/*.js'
9+
- 'src/**/*.purs'
10+
- 'src/**/*.js'
11+
- 'test/**/*.purs'
12+
- 'test/**/*.js'
13+
- '*.json'
14+
- '*.dhall'
15+
- '.github/workflows/ci.yml'
16+
pull_request:
17+
branches: [master]
18+
paths:
19+
- 'examples/**/*.purs'
20+
- 'examples/**/*.js'
21+
- 'src/**/*.purs'
22+
- 'src/**/*.js'
23+
- 'test/**/*.purs'
24+
- 'test/**/*.js'
25+
- '*.json'
26+
- '*.dhall'
27+
- '.github/workflows/ci.yml'
28+
29+
jobs:
30+
build:
31+
name: Build
32+
33+
runs-on: ubuntu-latest
34+
35+
steps:
36+
- uses: actions/checkout@v2
37+
38+
- name: Set up a PureScript toolchain
39+
uses: purescript-contrib/setup-purescript@main
40+
with:
41+
purescript: "unstable"
42+
purs-tidy: "latest"
43+
44+
- name: Cache PureScript dependencies
45+
uses: actions/cache@v2
46+
with:
47+
key: ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall') }}
48+
path: |
49+
.spago
50+
output
51+
52+
- name: Check formatting
53+
run: purs-tidy check examples src test
54+
55+
- name: Install PureScript dependencies
56+
run: spago install
57+
58+
- name: Build source
59+
run: spago build --no-install --purs-args '--censor-lib --strict'
60+
61+
- name: Run tests
62+
run: spago -x test.dhall test
63+
64+
- name: Build examples
65+
run: spago -x example.dhall build
66+
67+
- name: Verify Bower & Pulp
68+
run: |
69+
npm install bower [email protected]
70+
npx bower install
71+
npx pulp build -- --censor-lib --strict

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# purescript-dotenv [![Build](https://github.com/nsaunders/purescript-dotenv/workflows/Build/badge.svg)](https://github.com/nsaunders/purescript-dotenv/actions/workflows/build.yml) [![purescript-dotenv on Pursuit](https://pursuit.purescript.org/packages/purescript-dotenv/badge)](https://pursuit.purescript.org/packages/purescript-dotenv)
2-
## Load environment variables from a ```.env``` file.
1+
# purescript-dotenv [![Build](https://github.com/nsaunders/purescript-dotenv/workflows/CI/badge.svg)](https://github.com/nsaunders/purescript-dotenv/actions/workflows/ci.yml) [![purescript-dotenv on Pursuit](https://pursuit.purescript.org/packages/purescript-dotenv/badge)](https://pursuit.purescript.org/packages/purescript-dotenv)
2+
## Load environment variables from a `.env` file.
33

44
<img src="https://raw.githubusercontent.com/nsaunders/purescript-dotenv/master/img/readme.png" alt="purescript-dotenv" align="right" />
55

6-
According to [_The Twelve-Factor App_](https://12factor.net/config), configuration should be strictly separated from code and instead defined in environment variables. If you have found this best practice to be inconvenient, then you may want to give ```purescript-dotenv``` a try.
6+
According to [_The Twelve-Factor App_](https://12factor.net/config), configuration should be strictly separated from code and instead defined in environment variables. If you have found this best practice to be inconvenient in your dev environment, then you may want to give `purescript-dotenv` a try.
77

88
By allowing a configuration file to be consumed through the [`purescript-node-process` environment API](https://pursuit.purescript.org/packages/purescript-node-process/7.0.0/docs/Node.Process#v:getEnv), this library enables your application code to leverage environment variables in production while reducing the burden of setting them in development and test environments.
99

spago.example.dhall renamed to example.dhall

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
let conf = ./spago.dhall
22

33
in conf // {
4-
sources = conf.sources # [ "example/**/*.purs" ],
4+
sources = conf.sources # [ "examples/**/*.purs" ],
55
dependencies = conf.dependencies #
66
[ "console"
77
, "foreign-object"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)