build(deps): bump the go_modules group across 1 directory with 2 updates #2
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: CI | |
| on: | |
| push: | |
| branches: [main, master] | |
| pull_request: | |
| branches: [main, master] | |
| jobs: | |
| test: | |
| strategy: | |
| matrix: | |
| include: | |
| - os: macos-latest | |
| tags: "" | |
| - os: ubuntu-latest | |
| tags: "-tags crossbuild" | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| - name: Install dependencies (macOS) | |
| if: runner.os == 'macOS' | |
| run: brew install libusb | |
| - name: Install dependencies (Linux) | |
| if: runner.os == 'Linux' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libusb-1.0-0-dev libgtk-3-dev libappindicator3-dev | |
| - name: Build | |
| run: go build ${{ matrix.tags }} ./... | |
| - name: Test | |
| run: go test ${{ matrix.tags }} ./... | |
| - name: Vet | |
| run: go vet ${{ matrix.tags }} ./... | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libusb-1.0-0-dev libgtk-3-dev libappindicator3-dev | |
| - name: Lint with go vet | |
| run: go vet -tags crossbuild ./... |