*(global): fix CI scripts
This commit is contained in:
parent
b835baf013
commit
846f503337
|
@ -11,7 +11,7 @@ os:
|
|||
before_install:
|
||||
- nvm install node
|
||||
- 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:
|
||||
- npm --prefix client install
|
||||
|
|
10
ci.sh
10
ci.sh
|
@ -2,15 +2,17 @@
|
|||
set -e
|
||||
set -x
|
||||
|
||||
echo "Starting AdGuard Home CI script"
|
||||
|
||||
# Print the current directory contents
|
||||
ls -la
|
||||
|
||||
# Check versions and current directory
|
||||
node -v
|
||||
npm -v
|
||||
go version
|
||||
golangci-lint --version
|
||||
|
||||
# Print the current directory contents
|
||||
ls -la
|
||||
|
||||
# Run linter
|
||||
golangci-lint run
|
||||
|
||||
|
@ -30,3 +32,5 @@ else
|
|||
echo "Please make sure there are no changes"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "AdGuard Home CI script finished successfully"
|
Loading…
Reference in New Issue