[CI] paths, build stage

parent 2566af13
...@@ -15,6 +15,7 @@ variables: ...@@ -15,6 +15,7 @@ variables:
stages: stages:
- deps - deps
- build
- test - test
deps: deps:
...@@ -22,12 +23,25 @@ deps: ...@@ -22,12 +23,25 @@ deps:
cache: cache:
paths: paths:
- /nix/store - /nix/store
- ${HOME}/.bun/install/cache
- node_modules/ - node_modules/
- .spago/ #- ${CI_PROJECT_DIR}/bun.lockb
script: script:
#- nix-env -i git
- nix-shell shell.nix --run 'bun install --skip-builds' - nix-shell shell.nix --run 'bun install --skip-builds'
build:
stage: build
cache:
paths:
- /nix/store
- ${HOME}/.bun/install/cache
- node_modules/
- .spago/
#- ${CI_PROJECT_DIR}/bun.lockb
script:
- nix-shell shell.nix --run fix-bun
- nix-shell shell.nix --run build
test: test:
stage: test stage: test
cache: cache:
...@@ -35,12 +49,10 @@ test: ...@@ -35,12 +49,10 @@ test:
# key: ${CI_COMMIT_REF_SLUG} # key: ${CI_COMMIT_REF_SLUG}
paths: paths:
- /nix/store - /nix/store
- ${HOME}/.bun/install/cache
- node_modules/ - node_modules/
- .spago/ - .spago/
#- ${CI_PROJECT_DIR}/bun.lockb
script: script:
# find 0.14.5 purescript version here:
# https://lazamar.co.uk/nix-versions/
#- nix-env -i git
- nix-shell shell.nix --run fix-bun - nix-shell shell.nix --run fix-bun
- nix-shell shell.nix --run 'bun install --skip-builds'
- nix-shell shell.nix --run test-ps - nix-shell shell.nix --run test-ps
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment