Commit 4868dbf0 authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski

Merge branch 'puresript-format-ci' into 'dev'

fix(ci): add check-lint properly

See merge request !489
parents 9658b382 ca804ed5
Pipeline #7125 passed with stages
in 17 minutes and 1 second
......@@ -5,9 +5,9 @@ image: nixos/nix:2.24.8
stages:
# - deps
- check-lint
- compile
- test
- lint
# deps:
# stage: deps
......@@ -17,6 +17,17 @@ stages:
# #- node_modules/
# script:
# - nix-shell shell.nix --run 'bun install --skip-builds'
check-lint:
stage: check-lint
cache:
paths:
- /nix/store
- node_modules/
- output/
- .spago/
script:
- nix --extra-experimental-features "nix-command flakes" run .#check-lint
compile:
stage: compile
......@@ -46,14 +57,3 @@ test:
- nix-collect-garbage --delete-older-than 14d
lint:
stage: lint
cache:
paths:
- /nix/store
- node_modules/
- output/
- .spago/
script:
- nix --extra-experimental-features "nix-command flakes" run .#purs-tidy -- check src
......@@ -45,7 +45,8 @@
echo "blame.ignoreRevsFile has been set to .git-blame-ignore-revs."
fi
'';
build-zephyr = pkgs.writeShellScriptBin "build-zephyr" ''
set -e
......@@ -74,6 +75,17 @@
npm ci
'';
};
check-lint = pkgs.writeShellApplication {
name = "check-lint";
runtimeInputs = dependencies;
text = ''
set -e
echo "Checking format"
purs-tidy check "src"
'';
};
install = pkgs.writeShellApplication {
name = "install";
runtimeInputs = dependencies;
......@@ -155,9 +167,9 @@
self.packages.${system}.build
self.packages.${system}.build-css
self.packages.${system}.compile
self.packages.${system}.check-lint
self.packages.${system}.test-ps
self.packages.${system}.repl
setup-gitblame
build-zephyr
minify-bundle
......
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