-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
144 changed files
with
5,094 additions
and
1,600 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,12 +52,12 @@ jobs: | |
|
||
- name: Set up Haskell | ||
id: setup-haskell | ||
uses: haskell/actions/setup@v2 | ||
uses: haskell-actions/setup@v2 | ||
with: | ||
ghc-version: "${{ matrix.ghc }}" | ||
cabal-version: "latest" | ||
|
||
- uses: actions/setup-node@v3 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: "18" | ||
cache: "yarn" | ||
|
@@ -71,6 +71,7 @@ jobs: | |
echo "$HOME/.cabal/bin" >> $GITHUB_PATH | ||
echo "$HOME/.local/bin" >> $GITHUB_PATH | ||
echo "$HOME/node_modules/.bin" >> $GITHUB_PATH | ||
sudo apt install libsodium-dev | ||
source ./environment.ci.sh | ||
touch ~/.pgpass | ||
chmod 0600 ~/.pgpass | ||
|
@@ -83,7 +84,8 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
path: ${{ steps.setup-haskell.outputs.cabal-store }} | ||
key: ghc-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }} | ||
key: ${{ runner.os }}-ghc-${{ matrix.ghc }}-cabal-${{ hashFiles('**/plan.json') }} | ||
restore-keys: ${{ runner.os }}-ghc-${{ matrix.ghc }}- | ||
|
||
- name: Build | ||
run: | | ||
|
@@ -100,6 +102,6 @@ jobs: | |
migrate init "${FLORA_DB_CONNSTRING}" | ||
migrate migrate "${FLORA_DB_CONNSTRING}" migrations | ||
cabal run -- flora-cli create-user --username "hackage-user" --email "[email protected]" --password "foobar2000" | ||
cabal test | ||
make test | ||
env: | ||
PGPASSWORD: "postgres" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Test Docker Image | ||
|
||
on: | ||
pull_request: | ||
branches: ["main", "development"] | ||
paths: | ||
- Dockerfile | ||
- docker-compose.yml | ||
- scripts/.zshrc | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Build the hello-docker Docker image | ||
run: make docker-build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
.hspec-failures | ||
.vscode/ | ||
/.stack-work/ | ||
01-index | ||
01-index* | ||
< | ||
Session.vim | ||
_data/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,9 +42,15 @@ db-migrate: ## Apply database migrations | |
|
||
db-reset: db-drop db-setup db-provision ## Reset the dev database | ||
|
||
db-provision: build ## Load the development data in the database | ||
db-provision: ## Create categories and repositories | ||
@cabal run -- flora-cli create-user --username "hackage-user" --email "[email protected]" --password "foobar2000" | ||
@cabal run -- flora-cli provision categories | ||
@cabal run -- flora-cli provision-repository --name "hackage" --url https://hackage.haskell.org \ | ||
--description "Central package repository" | ||
@cabal run -- flora-cli provision-repository --name "cardano" --url https://input-output-hk.github.io/cardano-haskell-packages \ | ||
--description "Packages of the Cardano project" | ||
|
||
db-provision-test-packages: ## Load development data in the database | ||
@cabal run -- flora-cli provision test-packages | ||
|
||
import-from-hackage: ## Imports every cabal file from the ./index-01 directory | ||
|
@@ -102,6 +108,8 @@ tags: ## Generate ctags for the project with `ghc-tags` | |
|
||
design-system: ## Generate the HTML components used by the design system | ||
@cabal run -- flora-cli gen-design-system | ||
start-design-sysytem: ## Start storybook.js | ||
@cd design; yarn storybook | ||
|
||
help: | ||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.* ?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.