Skip to content

Commit

Permalink
Merge pull request #2 from EpitechPromo2027/jabolol/cleanup-structure
Browse files Browse the repository at this point in the history
chore: general `cleanup` and organization fixes
  • Loading branch information
Jabolol authored Nov 30, 2024
2 parents b81249b + 029ce01 commit a3eda67
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 22 deletions.
24 changes: 12 additions & 12 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "Glados Debian",
"image": "mcr.microsoft.com/devcontainers/base:bullseye",
"features": {
"ghcr.io/devcontainers-extra/features/haskell:2": {
"ghcVersion": "9.10.1",
"cabalVersion": "3.12.1.0",
"globalPackages": "hspec-discover hpc-codecov hlint ormolu"
},
"ghcr.io/devcontainers-contrib/features/pipx-package:1": {
"package": "pre-commit"
}
}
"name": "Glados Debian",
"image": "mcr.microsoft.com/devcontainers/base:bullseye",
"features": {
"ghcr.io/devcontainers-extra/features/haskell:2": {
"ghcVersion": "9.4.8",
"cabalVersion": "3.10.3.0",
"globalPackages": "hspec-discover hpc-codecov hlint ormolu"
},
"ghcr.io/devcontainers-contrib/features/pipx-package:1": {
"package": "pre-commit"
}
}
}
10 changes: 5 additions & 5 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,16 @@ jobs:

- name: Setup Haskell
if: ${{ steps.cabal-cache.outputs.cache-hit != 'true' && steps.ghcup-cache.outputs.cache-hit != 'true' }}
uses: ./actions/haskell-setup
uses: ./external/haskell-setup
with:
ghc-version: 9.10.1
cabal-version: 3.12.1.0
ghc-version: 9.4.8
cabal-version: 3.10.3.0

- name: Install dependencies
if: ${{ steps.cabal-cache.outputs.cache-hit != 'true' }}
run: |
cabal update
cabal install hspec-discover hpc-codecov
cabal install hspec-discover hpc-codecov --overwrite-policy=always
- name: Setup environment
if: ${{ steps.cabal-cache.outputs.cache-hit == 'true' && steps.ghcup-cache.outputs.cache-hit == 'true' }}
Expand All @@ -53,7 +53,7 @@ jobs:
- name: Build and test
run: |
cabal configure --enable-coverage
cabal configure --enable-coverage --disable-library-coverage
cabal build --jobs=1
cabal test --jobs=1
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ cabal.project.local~
.HTF/
.ghc.environment.*
venv/
*.tix
codecov.json
7 changes: 5 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "actions/haskell-setup"]
path = actions/haskell-setup
[submodule "external/haskell-setup"]
path = external/haskell-setup
url = git@github.com:haskell-actions/setup.git
[submodule "external/llvm-hs-pretty"]
path = external/llvm-hs-pretty
url = git@github.com:Jabolol/llvm-hs-pretty.git
2 changes: 2 additions & 0 deletions cabal.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
packages: .
external/llvm-hs-pretty
1 change: 1 addition & 0 deletions external/llvm-hs-pretty
Submodule llvm-hs-pretty added at 79aba3
8 changes: 5 additions & 3 deletions glados.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,18 @@ common warnings
library
import: warnings
exposed-modules: Misc
build-depends: base ^>=4.20.0.0
build-depends: base ^>=4.17.2.1
hs-source-dirs: lib
default-language: Haskell2010

executable glados
import: warnings
main-is: Main.hs
build-depends:
base ^>=4.20.0.0,
base ^>=4.17.2.1,
glados,
llvm-hs-pretty >=0.9.0 && <0.10,
llvm-hs-pure >=9.0.0 && <9.1,

hs-source-dirs: app
default-language: Haskell2010
Expand All @@ -41,7 +43,7 @@ test-suite glados-test
main-is: Spec.hs
build-depends:
QuickCheck,
base ^>=4.20.0.0,
base ^>=4.17.2.1,
glados,
hspec,
hspec-discover,

0 comments on commit a3eda67

Please # to comment.