| 1 | name: webbrowser-ci |
| 2 | |
| 3 | on: |
| 4 | workflow_dispatch: |
| 5 | push: |
| 6 | branches: ["main"] |
| 7 | paths: |
| 8 | - "go.mod" |
| 9 | - "webbrowser.go" |
| 10 | pull_request: |
| 11 | types: [opened, synchronize] |
| 12 | paths: |
| 13 | - "go.mod" |
| 14 | - "webbrowser.go" |
| 15 | |
| 16 | jobs: |
| 17 | run-ci: |
| 18 | runs-on: ubuntu-latest |
| 19 | steps: |
| 20 | - uses: actions/checkout@v3 |
| 21 | |
| 22 | - name: Set up Go |
| 23 | uses: actions/setup-go@v4 |
| 24 | with: |
| 25 | go-version: ">=1.20" |
| 26 | check-latest: true |
| 27 | |
| 28 | - name: Test |
| 29 | run: go test -v ./... |