added auto updated functionality for locally cached rules #4
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: CI Workflow Backend (Golang) | |
on: | |
push: | |
paths: | |
- rate_shield/** | |
pull_request: | |
paths: | |
- rate_shield/** | |
jobs: | |
backend: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./rate_shield | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22' | |
- name: Install Go Dependencies | |
run: go mod tidy | |
- name: Run GolangCI-Lint Check | |
uses: golangci/golangci-lint-action@v6 | |
with: | |
working-directory: ./server | |
- name: Build Go Application | |
run: go build -o app ./main.go |