update user controller #77
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: Build | |
on: | |
push: | |
branches: | |
- "*" | |
- "*/*" | |
pull_request: | |
branches: | |
- "*" | |
- "*/*" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go-version: ["1.20.x", "1.21.x"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Go ${{ matrix.go-version }} | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Display Go version | |
run: go version | |
- name: Verify dependencies | |
run: go mod verify | |
- name: Download all dependencies | |
run: | | |
go mod download | |
go get -d -v ./... | |
go install -v ./... | |
- name: Generate Self-Signed TLS Certificate | |
run: | | |
mkdir -p keys | |
openssl req -x509 -newkey rsa:4096 -keyout keys/private.key -out keys/publickey.crt -days 365 -nodes -subj "/CN=localhost" | |
working-directory: ${{ github.workspace }} | |
- name: Create .env file | |
run: echo "${{ secrets.ENV }}" > .env | |
- name: Build | |
run: go build -o main main.go |