.github/workflows/test.yml
raw| 1 | name: Test |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: |
| 6 | - '*' |
| 7 | pull_request: |
| 8 | branches: |
| 9 | - '*' |
| 10 | |
| 11 | jobs: |
| 12 | build: |
| 13 | strategy: |
| 14 | fail-fast: false |
| 15 | matrix: |
| 16 | go-version: ["1.20"] |
| 17 | os: [ubuntu-latest] |
| 18 | runs-on: ${{ matrix.os }} |
| 19 | |
| 20 | steps: |
| 21 | - name: Set up Go |
| 22 | uses: actions/setup-go@v2 |
| 23 | with: |
| 24 | go-version: ${{ matrix.go-version }} |
| 25 | id: go |
| 26 | |
| 27 | - name: Check out code into the Go module directory |
| 28 | uses: actions/checkout@v2 |
| 29 | |
| 30 | - name: Run tests |
| 31 | run: go test ./... |