*(global): fix CI scripts
This commit is contained in:
parent
b835baf013
commit
846f503337
|
@ -11,7 +11,7 @@ os:
|
||||||
before_install:
|
before_install:
|
||||||
- nvm install node
|
- nvm install node
|
||||||
- npm install -g npm
|
- npm install -g npm
|
||||||
- go install github.com/golangci/golangci-lint/cmd/golangci-lint
|
- curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b /usr/local/bin v1.19.1
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- npm --prefix client install
|
- npm --prefix client install
|
||||||
|
|
10
ci.sh
10
ci.sh
|
@ -2,15 +2,17 @@
|
||||||
set -e
|
set -e
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
|
echo "Starting AdGuard Home CI script"
|
||||||
|
|
||||||
|
# Print the current directory contents
|
||||||
|
ls -la
|
||||||
|
|
||||||
# Check versions and current directory
|
# Check versions and current directory
|
||||||
node -v
|
node -v
|
||||||
npm -v
|
npm -v
|
||||||
go version
|
go version
|
||||||
golangci-lint --version
|
golangci-lint --version
|
||||||
|
|
||||||
# Print the current directory contents
|
|
||||||
ls -la
|
|
||||||
|
|
||||||
# Run linter
|
# Run linter
|
||||||
golangci-lint run
|
golangci-lint run
|
||||||
|
|
||||||
|
@ -30,3 +32,5 @@ else
|
||||||
echo "Please make sure there are no changes"
|
echo "Please make sure there are no changes"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "AdGuard Home CI script finished successfully"
|
Loading…
Reference in New Issue