Implement change password for a user in FE #193
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint server (FE+BE) | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- ready_for_review | |
- synchronize | |
jobs: | |
lint: | |
if: github.event.pull_request.draft != true | |
name: Run golangci-lint via Makefile | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.23.4 | |
- uses: awalsh128/[email protected] | |
with: | |
packages: protobuf-compiler | |
version: 1.0 | |
# sudo apt-get install -y protobuf-compiler | |
- name: Install protoc and dependencies | |
run: | | |
# Install protoc (Protocol Buffers Compiler) | |
# Install Go plugin for protoc | |
go install google.golang.org/protobuf/cmd/[email protected] | |
go install google.golang.org/grpc/cmd/[email protected] | |
# Ensure the bin directory is in PATH for protoc-gen-go and protoc-gen-go-grpc | |
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH | |
- name: Install golangci-lint | |
run: | | |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.62.2 | |
- name: Compile proto files | |
run: | | |
cd server | |
make proto | |
- name: Run golangci-lint:server | |
run: | | |
cd server | |
go mod tidy | |
make lint |