fix(model): change PhotoID type from string to uint64 #126
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: Go | |
on: | |
push: | |
branches: [ master, main ] | |
pull_request: | |
branches: [ master, main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
GOPATH: ${{ github.workspace }} | |
package: src/github.com/${{ github.repository }} | |
defaults: | |
run: | |
working-directory: ${{ env.GOPATH }}/${{ env.package }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
path: ${{ env.GOPATH }}/${{ env.package }} | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.20' | |
cache-dependency-path: | | |
${{ env.GOPATH }}/${{ env.package }}/go.mod | |
${{ env.GOPATH }}/${{ env.package }}/go.sum | |
- name: Dependencies | |
run: go mod download | |
- name: Build | |
working-directory: ${{ env.GOPATH }}/${{ env.package }} | |
run: | | |
go build -v ./... | |
- name: Test | |
env: | |
APPKEY: ${{ secrets.APPKEY }} | |
SECRET: ${{ secrets.APP_SECRET }} | |
run: go test -v ./... |