Update to go v1.24 #6
Workflow file for this run
This file contains 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: Build | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- .github/workflows/build.yaml | |
- cmd/** | |
- internal/** | |
- go.* | |
push: | |
branches: | |
- main | |
paths: | |
- .github/workflows/build.yaml | |
- cmd/** | |
- internal/** | |
- go.* | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Run tests | |
env: | |
# Use the toolchain specified in go.mod, or newer | |
GOTOOLCHAIN: auto | |
run: go test -short -v ./... | |
build-bot: | |
name: Build bot | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Build bot | |
env: | |
# Use the toolchain specified in go.mod, or newer | |
GOTOOLCHAIN: auto | |
run: go build -o bot cmd/bot/*.go | |
build-ytplay: | |
name: Build ytplay | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Build ytplay | |
env: | |
# Use the toolchain specified in go.mod, or newer | |
GOTOOLCHAIN: auto | |
run: go build -o ytplay cmd/ytplay/*.go |