Add test to do Get from a variable. #120
Workflow file for this run
This file contains hidden or 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: Gotext build | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Set up Go Stable version | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: stable | |
| id: go | |
| - name: Check out code into the Go module directory | |
| uses: actions/checkout@v4 | |
| - name: Get dependencies | |
| run: | | |
| go get -v -u -t -d ./... | |
| - name: Build package | |
| run: go build -v . | |
| - name: Test | |
| run: go test -v -race ./... | |
| - name: Install xgotext CLI | |
| run: go install -v github.com/leonelquinteros/gotext/cli/xgotext | |
| - name: Run xgotext CLI | |
| run: go run cli/xgotext/main.go -default test -in cli/xgotext/fixtures -out cli/xgotext/fixtures/out | |