Merge pull request #54 from open-spaced-repetition/refactor/project-r… #192
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: Test | |
| on: [ push, pull_request, workflow_dispatch ] | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ ubuntu-latest, macos-latest, windows-latest ] | |
| go: [ 1.26.x ] | |
| env: | |
| OS: ${{ matrix.os }} | |
| GO: ${{ matrix.go }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: ${{ matrix.go }} | |
| - name: Run go vet | |
| run: go vet ./... | |
| - name: Run tests | |
| run: go test -race -coverprofile coverage.txt -covermode atomic ./... |