Skip to content

Commit

Permalink
Init (copy from freckle-app) (#1)
Browse files Browse the repository at this point in the history
* copy from freckle-app

* raise lts20 persistent

* remove top level license and readme

* little changelog link adjustment

* update source repo location

* correction to cabal description

* typo in readme
  • Loading branch information
chris-martin authored Jan 8, 2025
1 parent f6a7dcc commit 2d22fee
Show file tree
Hide file tree
Showing 30 changed files with 1,965 additions and 4 deletions.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @freckle/backenders
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
16 changes: 16 additions & 0 deletions .github/workflows/add-asana-comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Asana

on:
pull_request:
types: [opened]

jobs:
link-asana-task:
if: ${{ github.actor != 'dependabot[bot]' }}
runs-on: ubuntu-latest
steps:
- uses: Asana/[email protected]
id: postAttachment
with:
asana-secret: ${{ secrets.ASANA_API_ACCESS_KEY }}
- run: echo "Status is ${{ steps.postAttachment.outputs.status }}"
45 changes: 45 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: CI

on:
pull_request:
push:
branches: main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- id: generate
uses: freckle/stack-action/generate-matrix@v5
outputs:
stack-yamls: ${{ steps.generate.outputs.stack-yamls }}
fail-fast: false

test:
needs: generate
runs-on: ubuntu-latest

strategy:
matrix:
stack-yaml: ${{ fromJSON(needs.generate.outputs.stack-yamls) }}
fail-fast: false

steps:
- uses: actions/checkout@v4
- uses: freckle/stack-action@v5
env:
STACK_YAML: ${{ matrix.stack-yaml }}

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: haskell-actions/hlint-setup@v2
- uses: haskell-actions/hlint-run@v2
with:
fail-on: warning
19 changes: 19 additions & 0 deletions .github/workflows/mergeabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Mergeabot

on:
schedule:
- cron: "0 0 * * *"

pull_request:

permissions:
contents: write
pull-requests: write

jobs:
mergeabot:
runs-on: ubuntu-latest
steps:
- uses: freckle/mergeabot-action@v2
with:
quarantine-days: 5
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Release

on:
push:
branches: main
workflow_dispatch:

jobs:
release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- id: tag
uses: freckle/haskell-tag-action@v1
with:
package-yaml: persistent-sql-lifted/package.yaml
tag-prefix: persistent-sql-lifted-v
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- if: steps.tag.outputs.tag
run: stack upload --pvp-bounds lower persistent-sql-lifted
env:
HACKAGE_KEY: ${{ secrets.HACKAGE_UPLOAD_API_KEY }}
STACK_YAML: stack-lts20.yaml
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.stack-work
*.hie
.hiedb
stack-*.lock
stack.*.lock
.direnv
2 changes: 0 additions & 2 deletions README.md

This file was deleted.

Loading

0 comments on commit 2d22fee

Please sign in to comment.