Skip to content

Fix Localize regression with empty default message #164

Fix Localize regression with empty default message

Fix Localize regression with empty default message #164

Workflow file for this run

name: Build
on:
- push
- pull_request
jobs:
build:
name: Build
runs-on: ubuntu-latest
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'pull_request'
steps:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: stable
- name: Git checkout
uses: actions/checkout@v3
- name: Build
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist --snapshot
workdir: v2
- name: Test
working-directory: v2
run: go test -race -coverprofile=coverage.txt -covermode=atomic ./...
- name: Upload coverage
uses: codecov/codecov-action@v1
build_1_12:
name: Build with Go 1.12.17
runs-on: ubuntu-latest
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'pull_request'
steps:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: '1.12.17'
- name: Git checkout
uses: actions/checkout@v3
with:
path: gopath/src/github.com/nicksnyder/go-i18n
- name: Build and test
working-directory: gopath/src/github.com/nicksnyder/go-i18n/v2
env:
GOPATH: ${{ github.workspace }}/gopath
GO111MODULE: on
run: |
go get ./...
go test -race ./...