Make code shorter by using writeFunc / readFunc var #140
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
| # https://help.github.com/en/articles/workflow-syntax-for-github-actions | |
| name: Build | |
| on: | |
| - push | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: | |
| - windows-2019 | |
| - windows-latest | |
| - macos-14 | |
| - macos-latest | |
| - ubuntu-24.04 | |
| - ubuntu-latest | |
| go: | |
| - "1.23" | |
| fail-fast: false | |
| steps: | |
| - name: Checkout source codes | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: ${{ matrix.go }} | |
| - name: Build | |
| run: go build -v | |
| - name: Test | |
| run: go test -v ./... |