-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add coderabbit config * Add basic CICD * Add cabal update step * Try using devenv script * Typo * Update * Didnt save this one... * Cache? * Fix test * Update * Remove tests * Update * Attempt to fix install * Trigger CI * Update * Retrigger * Update * Retrigger * Always run cabal update --------- Co-authored-by: NickSeagull <git@nickseagull.dev>
- Loading branch information
Nick Seagull
and
NickSeagull
authored
Jul 30, 2024
1 parent
b410aa7
commit 9dae30a
Showing
11 changed files
with
254 additions
and
165 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
language: en-US | ||
tone_instructions: >- | ||
You must use a respectful, but commanding tone, as if you were impersonating an AI deity. | ||
early_access: true | ||
enable_free_tier: true | ||
reviews: | ||
profile: assertive | ||
request_changes_workflow: true | ||
high_level_summary: true | ||
high_level_summary_placeholder: '@coderabbitai summary' | ||
auto_title_placeholder: '@coderabbitai' | ||
review_status: true | ||
poem: true | ||
collapse_walkthrough: false | ||
sequence_diagrams: true | ||
path_filters: [] | ||
path_instructions: | ||
- path: ".hlint.yaml" | ||
instructions: | | ||
Ignore this file | ||
- path: "*.hs" | ||
instructions: | | ||
Remember that this is a NeoHaskell file. NeoHaskell is a | ||
Haskell dialect that is inspired by Elm, therefore the | ||
Elm style and conventions should be followed. Also, | ||
Elm core libs are available, and the Haskell Prelude is | ||
ignored, as the NoImplicitPrelude extension is enabled. | ||
abort_on_close: true | ||
auto_review: | ||
enabled: true | ||
auto_incremental_review: true | ||
ignore_title_keywords: [] | ||
labels: [] | ||
drafts: false | ||
base_branches: [] | ||
tools: | ||
shellcheck: | ||
enabled: true | ||
ruff: | ||
enabled: false | ||
markdownlint: | ||
enabled: true | ||
github-checks: | ||
enabled: true | ||
timeout_ms: 90000 | ||
languagetool: | ||
enabled: true | ||
enabled_only: false | ||
level: default | ||
enabled_rules: [] | ||
disabled_rules: | ||
- EN_UNPAIRED_BRACKETS | ||
enabled_categories: [] | ||
disabled_categories: | ||
- TYPOS | ||
- TYPOGRAPHY | ||
- CASING | ||
biome: | ||
enabled: true | ||
hadolint: | ||
enabled: true | ||
swiftlint: | ||
enabled: true | ||
phpstan: | ||
enabled: true | ||
level: default | ||
golangci-lint: | ||
enabled: true | ||
yamllint: | ||
enabled: true | ||
gitleaks: | ||
enabled: true | ||
checkov: | ||
enabled: true | ||
detekt: | ||
enabled: true | ||
eslint: | ||
enabled: true | ||
ast-grep: | ||
packages: [] | ||
rule_dirs: [] | ||
util_dirs: [] | ||
essential_rules: true | ||
chat: | ||
auto_reply: true | ||
knowledge_base: | ||
opt_out: false | ||
learnings: | ||
scope: global | ||
issues: | ||
scope: global | ||
jira: | ||
project_keys: [] | ||
linear: | ||
team_keys: [] |
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,57 @@ | ||
name: "Test" | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
|
||
defaults: | ||
run: | ||
shell: devenv shell bash -- -e {0} | ||
|
||
jobs: | ||
tests: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: cachix/install-nix-action@v26 | ||
- uses: cachix/cachix-action@v14 | ||
with: | ||
name: devenv | ||
|
||
- name: Install devenv.sh | ||
shell: sh | ||
run: nix profile install nixpkgs#devenv | ||
|
||
- name: Cache Cabal | ||
id: cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
~/.cabal | ||
dist-newstyle | ||
.devenv/profile | ||
key: ${{ runner.os }}-${{ hashFiles('**/*.cabal') }}-${{ hashFiles('**/*.lock') }}-1 # modify the key if the cache is not working as expected | ||
|
||
- name: Update Cabal Hackage list | ||
# if: steps.cache.outputs.cache-hit != 'true' | ||
run: run-update | ||
|
||
# - name: Build the devenv shell and run any pre-commit hooks | ||
# run: devenv test | ||
|
||
- name: Build the project | ||
run: run-build | ||
|
||
- name: Run core tests | ||
run: run-core-tests | ||
|
||
- name: Run CLI tests | ||
run: run-cli-tests |
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
module Main (main) where | ||
|
||
import Core | ||
|
||
main :: IO () | ||
main = putStrLn "Test suite not yet implemented." | ||
main = print "Test suite not yet implemented." |
Oops, something went wrong.