Skip to content

Cap field lengths on User model #100

Cap field lengths on User model

Cap field lengths on User model #100

Workflow file for this run

name: ci
on:
pull_request:
push:
branches:
- master
tags:
- "v*"
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.21
- 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.58.2
- name: Verify and tidy go.mod
run: |
go mod download
go mod verify
go mod tidy
- name: Run golangci-lint
run: make check-style
- name: Check code style with gofmt
run: make gofmt
- name: Run tests
run: make test
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.21
- 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.58.2
- name: Verify Go modules
run: |
go mod download
go mod verify
go mod tidy
- name: Build and package
run: make package
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: build
path: build