Skip to content

Commit

Permalink
Add CI workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Lefkowitz committed Apr 20, 2024
1 parent 3433a51 commit 263f985
Show file tree
Hide file tree
Showing 12 changed files with 4,580 additions and 4,219 deletions.
19 changes: 16 additions & 3 deletions .cspell.json
@@ -1,22 +1,34 @@
{
"language": "en",
"ignorePaths": [
".DS_Store",
".git",
".gitignore",
".husky",
".psc-ide-port",
".spago",
"coverage",
"dist",
".yarn",
"bower_components",
"generated-docs",
"node_modules",
"output",
"yarn-error.log"
],
"dictionaries": ["bash", "en-gb", "misc", "node", "softwareTerms"],
"dictionaries": [
"aws",
"bash",
"en-gb",
"fullstack",
"misc",
"softwareTerms"
],
"words": [
"bumpversion",
"codacy",
"dhall",
"foldl",
"forall",
"giphy",
"joellefkowitz",
"lefkowitz",
"newtype",
Expand All @@ -27,6 +39,7 @@
"repr",
"spago",
"stringutils",
"trufflehog",
"unfoldable"
]
}
19 changes: 3 additions & 16 deletions .github/actions/install/action.yml
Expand Up @@ -10,26 +10,13 @@ runs:
using: composite
steps:
- name: Checkout the source code
uses: actions/checkout@v3

- name: Fetch yarn's cache directory path
id: yarn-cache-dir-path
shell: bash
run: echo "YARN_CACHE_DIR=$(yarn cache dir)" >> $GITHUB_ENV

- name: Set up yarn package caching
uses: actions/cache@v3
id: yarn-cache
with:
path: ${{ env.YARN_CACHE_DIR }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
uses: actions/checkout@v4

- name: Set the node version
uses: actions/setup-node@v3
uses: actions/setup-node@v5
with:
node-version: ${{ inputs.node-version }}
cache: yarn

- name: Install node dependencies
shell: bash
Expand Down
51 changes: 0 additions & 51 deletions .github/workflows/docs.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/review.yml
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout the source code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install dependencies
uses: ./.github/actions/install
Expand Down
29 changes: 4 additions & 25 deletions .gitignore
@@ -1,30 +1,9 @@
.DS_Store
.psc-ide-port
.spago/
.yarn/
bower_components/
node_modules/
venv/

build/
coverage/
dist/
generated-docs/
node_modules/
output/
tests_output/

__pycache__/
.mypy_cache/
.nx/
.pytest_cache/
.terraform/

*.coverage
*.dblite
*.egg-info/
*.env*
*.o
*.pyc
*.types

.DS_Store
.psc-ide-port
.terraform.lock.hcl
yarn-error.log
27 changes: 27 additions & 0 deletions .trufflehog3.yml
@@ -0,0 +1,27 @@
severity: low
exclude:
- message: Giphy links
pattern: media\.giphy\.com

- message: Shield links
pattern: img\.shields\.io

- message: Codacy references
pattern: "codacy_id:"

- message: Dependencies
paths:
- node_modules
- .spago

- message: Package management
paths:
- packages.dhall
- purs.json
- spago.yaml

- message: Tooling outputs
paths:
- yarn-error.log
- yarn.lock
- output/cache-db.json
1 change: 1 addition & 0 deletions .yarnrc.yml
@@ -0,0 +1 @@
nodeLinker: node-modules
Empty file added docs/images/.gitkeep
Empty file.
16 changes: 3 additions & 13 deletions package.json
@@ -1,19 +1,9 @@
{
"metadata": {
"publisher": "Pursuit",
"languages": [
"PureScript"
],
"frameworks": [],
"paradigms": [
"Functional"
],
"lifecycle": "Alpha"
},
"packageManager": "yarn@4.1.1",
"scripts": {
"prepare": "husky install",
"postinstall": "husky install",
"format": "prettier . --write && echo src test | xargs -n1 npx purty --write",
"lint": "cspell . --dot && eslint . --fix --no-error-on-unmatched-pattern"
"lint": "cspell . --dot && eslint . --fix --no-error-on-unmatched-pattern && trufflehog3"
},
"resolutions": {
"string-width": "4.2.3",
Expand Down

0 comments on commit 263f985

Please sign in to comment.