This repository was archived by the owner on Dec 13, 2025. It is now read-only.
added more tests, fixed hour format output #18
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: build-and-test | |
| on: [push] | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| version: [1.23.5] | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| name: Build | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Set up Go ${{ matrix.os }} | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: '${{ matrix.version }}' | |
| id: go | |
| - name: checkout | |
| uses: actions/checkout@v5 | |
| - name: build | |
| run: go build | |
| - name: test | |
| run: make test | |
| golangci: | |
| name: lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version: 1.23 | |
| - uses: actions/checkout@v5 | |
| - name: golangci-lint | |
| uses: golangci/golangci-lint-action@v8 |