ci fix ci workflow yaml #3
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: | |
| tags: | |
| - v* | |
| branches: | |
| - main | |
| - release-* | |
| workflow_dispatch: | |
| pull_request: | |
| types: [opened, synchronize] | |
| branches: | |
| - main | |
| - release-* | |
| jobs: | |
| test: | |
| name: test and run | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| steps: | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: 'stable' | |
| id: go | |
| - name: Check out code | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 1 | |
| - name: Install dependencies (shellcheck) macOS | |
| if: matrix.os == 'macos-latest' | |
| run: | | |
| brew install shellcheck | |
| - name: Install dependencies (shellcheck) Ubuntu | |
| if: matrix.os == 'ubuntu-latest' | |
| run: | | |
| sudo apt update | |
| sudo apt install -y shellcheck | |
| - name: run checks | |
| run: make check | |
| shell: bash | |
| - name: run install and validate | |
| run: | | |
| ./install.sh | |
| type builbo | |
| shell: bash | |