API gateway 'db_read' action. #31
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: Backend Workflow | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go-version: [ '1.20.5' ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go ${{ matrix.go-version }} | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Go version | |
run: go version | |
- name: Build Forgot Password back-end. | |
run: cd backend/forgetpass && go build -ldflags "-w -s" | |
- name: Build Authentication back-end. | |
run: cd backend/auth && go build -ldflags "-w -s" | |
- name: Build SMS back-end | |
run: cd backend/sms && go build -ldflags "-w -s" | |
- name: Build Data Analytics back-end | |
run: cd backend/data_analytics && go build -ldflags "-w -s" | |
- name: Build Database back-end | |
run: cd backend/database && go build -ldflags "-w -s" | |
- name: Build Traffic back-end | |
run: cd backend/traffic && go build -ldflags "-w -s" |