deps: Bump discordgo, whatsmeow and others #430
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: Development | ||
|
Check failure on line 1 in .github/workflows/development.yml
|
||
| on: | ||
| push: | ||
| paths-ignore: | ||
| - 'docs/**' | ||
| - 'README.md' | ||
| pull_request: | ||
| paths-ignore: | ||
| - 'docs/**' | ||
| - 'README.md' | ||
| permissions: | ||
| contents: read | ||
| pull-requests: read | ||
| jobs: | ||
| lint: | ||
| name: golangci-lint | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
| - run: echo {{ github.event.before }} | ||
| - uses: actions/setup-go@v6 | ||
| with: | ||
| go-version: 1.24.x | ||
| - name: golangci-lint | ||
| uses: golangci/golangci-lint-action@v8 | ||
| with: | ||
| version: v2.1 | ||
| # Only compare with previous commit when pushing, | ||
| # and with base branch when in PR. | ||
| # only-new-issues: true | ||
| # Attempts based on https://github.com/orgs/community/discussions/26409 | ||
| # https://github.com/golangci/golangci-lint-action/issues/996 | ||
| # It looks like golangci-lint-action is targeting the wrong base ref, not | ||
| # in the pull request but in the commit | ||
| args: >- | ||
| --build-tags=goolm --new-from-rev=${{ github.event_name == 'pull_request' && format('origin/{0}', github.base_ref) || origin/master }} | ||
| - name: golangci-lint (entire codebase) | ||
| uses: golangci/golangci-lint-action@v8 | ||
| with: | ||
| version: v2.1 | ||
| args: --build-tags=goolm --config=.golangci-incremental.yaml | ||
| test: | ||
| strategy: | ||
| matrix: | ||
| # Test on latest release and v1.24 | ||
| go-version: [1.24.x, stable] | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Install Go | ||
| uses: actions/setup-go@v6 | ||
| with: | ||
| go-version: ${{ matrix.go-version }} | ||
| - name: Checkout code | ||
| uses: actions/checkout@v5 | ||
| - name: go fmt ./... (go version ${{ matrix.go-version }}) | ||
| run: test -z "$(go fmt ./...)" | ||
| - name: go test -tags goolm ./... (go version ${{ matrix.go-version }}) | ||
| run: go test -tags goolm ./... | ||
| build-upload: | ||
| # Uploading artifacts only if lint/test succeeded | ||
| needs: [ "lint", "test" ] | ||
| strategy: | ||
| matrix: | ||
| arch: [amd64] | ||
| platform: | ||
| - name: linux | ||
| goos: linux | ||
| - name: windows | ||
| goos: windows | ||
| - name: mac | ||
| goos: darwin | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Install Go | ||
| uses: actions/setup-go@v6 | ||
| with: | ||
| go-version: stable | ||
| - name: Checkout code | ||
| uses: actions/checkout@v5 | ||
| - name: Build/upload matterbridge for ${{ matrix.platform.goos }}-${{ matrix.arch }} | ||
| run: | | ||
| CGO_ENABLED=0 GOOS=${{ matrix.platform.goos }} GOARCH=${{ matrix.arch }} go build -tags goolm -ldflags "-s -X github.com/matterbridge-org/matterbridge/version.GitHash=$(git log --pretty=format:'%h' -n 1)" -o matterbridge | ||
| - name: Upload matterbridge-${{ matrix.name }}-${{ matrix.arch }} | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: matterbridge-${{ matrix.platform.goos }}-${{ matrix.arch }} | ||
| path: matterbridge | ||