Bump the go-dependencies group across 1 directory with 11 updates #483
Workflow file for this run
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: Run tests | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - master | |
| tags: | |
| - v* | |
| pull_request: | |
| branches: | |
| - master | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Load .env file | |
| shell: bash | |
| run: grep -v '^#' .env | sed 's/"//g' >> $GITHUB_ENV | |
| - name: Setup Go ${{ env.GO_VERSION }} | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: ${{ env.GO_VERSION }} | |
| cache-dependency-path: | | |
| go.sum | |
| tools.sum | |
| - name: Install Exiftool (Ubuntu) | |
| if: matrix.os == 'ubuntu-latest' | |
| run: sudo apt-get update && sudo apt-get install -y libimage-exiftool-perl | |
| - name: Install Exiftool (macOS) | |
| if: matrix.os == 'macos-latest' | |
| run: brew install exiftool | |
| - name: Install Exiftool (Windows) | |
| if: matrix.os == 'windows-latest' | |
| uses: MinoruSekine/setup-scoop@v4.0.1 | |
| with: | |
| apps: exiftool | |
| - name: Install Just | |
| if: matrix.os != 'windows-latest' | |
| uses: taiki-e/install-action@just | |
| - name: Run tests (non-Windows) | |
| if: matrix.os != 'windows-latest' | |
| run: just test | |
| - name: Run tests (Windows) | |
| if: matrix.os == 'windows-latest' | |
| # disable -race for now | |
| run: go test ./... -coverprofile=coverage.out -coverpkg=. | |
| - name: Run Go Vulnerability Check | |
| if: matrix.os == 'ubuntu-latest' | |
| run: just vulncheck | |
| trigger_stable_release: | |
| runs-on: ubuntu-latest | |
| needs: test | |
| if: github.ref_type == 'tag' | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Trigger repository_dispatch event | |
| run: | | |
| curl -X POST \ | |
| -H "Accept: application/vnd.github+json" \ | |
| -H "Authorization: Bearer ${{ secrets.PERSONAL_ACCESS_TOKEN }}" \ | |
| https://api.github.com/repos/ayoisaiah/f2/dispatches \ | |
| -d '{"event_type": "release_stable", "client_payload":{"tag": "${{ github.ref }}", "tag_name": "${{ github.ref_name }}" }}' | |