Skip to content

Commit

Permalink
Update GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
STARRY-S committed Jul 4, 2024
1 parent 68c22e8 commit 01337d9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 118 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
with:
go-version: ${{ matrix.go-version }}
- name: Install dependencies
run: go install .
- name: Unit test
run: go test ./...
- name: Build test
run: go build .
run: |-
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.59.1
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
- name: CI
run: ./scripts/ci.sh
113 changes: 0 additions & 113 deletions pkg/apis/flatnetwork.pandaria.io/v1/types_test.go

This file was deleted.

6 changes: 6 additions & 0 deletions scripts/validate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ set -euo pipefail
cd $(dirname $0)/..
WORKINGDIR=$(pwd)

if [ -n "$(git status --porcelain --untracked-files=no)" ]; then
echo 'Ensure git directory is clean before run this script:'
git status --short
exit 1
fi

echo 'Running: go mod verify'
go mod verify

Expand Down

0 comments on commit 01337d9

Please sign in to comment.