diff --git a/.github/workflows/browser-testing.yml b/.github/workflows/browser-testing.yml index 61f780964..fb9ed2f1f 100644 --- a/.github/workflows/browser-testing.yml +++ b/.github/workflows/browser-testing.yml @@ -40,7 +40,7 @@ jobs: - uses: actions/setup-go@v5 with: - go-version: '1.21' + go-version: '1.22' cache: true - name: Install Google Chrome diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 52ddf668a..8392c1938 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -9,16 +9,16 @@ # the `language` matrix defined below to confirm you have the correct set of # supported CodeQL languages. # -name: "CodeQL" +name: 'CodeQL' on: push: - branches: [ develop ] + branches: [develop] paths-ignore: - 'static/**' pull_request: # The branches below must be a subset of the branches above - branches: [ develop ] + branches: [develop] paths-ignore: - 'static/**' @@ -30,41 +30,46 @@ jobs: strategy: fail-fast: false matrix: - language: [ 'go', 'javascript' ] + language: ['go', 'javascript'] # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ] # Learn more: # https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed steps: - - name: Checkout repository - uses: actions/checkout@v4 + - name: Checkout repository + uses: actions/checkout@v4 - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v3 - with: - languages: ${{ matrix.language }} - config-file: ./.github/codeql/${{ matrix.language }}.yml - # If you wish to specify custom queries, you can do so here or in a config file. - # By default, queries listed here will override any specified in a config file. - # Prefix the list here with "+" to use these queries and those in the config file. - # queries: ./path/to/local/query, your-org/your-repo/queries@main + - uses: actions/setup-go@v5 + with: + go-version: '1.22' + cache: true - # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). - # If this step fails, then you should remove it and run the build manually (see below) - - name: Autobuild - uses: github/codeql-action/autobuild@v3 + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: ${{ matrix.language }} + config-file: ./.github/codeql/${{ matrix.language }}.yml + # If you wish to specify custom queries, you can do so here or in a config file. + # By default, queries listed here will override any specified in a config file. + # Prefix the list here with "+" to use these queries and those in the config file. + # queries: ./path/to/local/query, your-org/your-repo/queries@main - # ℹī¸ Command-line programs to run using the OS shell. - # 📚 https://git.io/JvXDl + # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). + # If this step fails, then you should remove it and run the build manually (see below) + - name: Autobuild + uses: github/codeql-action/autobuild@v3 - # ✏ī¸ If the Autobuild fails above, remove it and uncomment the following three lines - # and modify them (or add more) to build your code if your project - # uses a compiled language + # ℹī¸ Command-line programs to run using the OS shell. + # 📚 https://git.io/JvXDl - #- run: | - # make bootstrap - # make release + # ✏ī¸ If the Autobuild fails above, remove it and uncomment the following three lines + # and modify them (or add more) to build your code if your project + # uses a compiled language - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v3 + #- run: | + # make bootstrap + # make release + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 diff --git a/.github/workflows/go-lint.yml b/.github/workflows/go-lint.yml index 169025fd2..91d4d6bba 100644 --- a/.github/workflows/go-lint.yml +++ b/.github/workflows/go-lint.yml @@ -28,7 +28,7 @@ jobs: - uses: actions/setup-go@v5 with: - go-version: '1.21' + go-version: '1.22' cache: true - uses: actions/checkout@v4 - name: golangci-lint diff --git a/.github/workflows/go-tests.yaml b/.github/workflows/go-tests.yaml index d77b526cb..9c8293247 100644 --- a/.github/workflows/go-tests.yaml +++ b/.github/workflows/go-tests.yaml @@ -12,7 +12,7 @@ jobs: test: strategy: matrix: - go-version: [1.20.x, 1.21.x] + go-version: [1.21.x, 1.22.x] os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.os }} steps: diff --git a/.github/workflows/hls-tests.yml b/.github/workflows/hls-tests.yml index 1a7f94a16..47429da9d 100644 --- a/.github/workflows/hls-tests.yml +++ b/.github/workflows/hls-tests.yml @@ -27,7 +27,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: '1.21' + go-version: '1.22' cache: true - name: Cache node modules diff --git a/.github/workflows/screenshots.yml b/.github/workflows/screenshots.yml index 811b85f6f..c4c87c174 100644 --- a/.github/workflows/screenshots.yml +++ b/.github/workflows/screenshots.yml @@ -17,7 +17,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: '1.21' + go-version: '1.22' cache: true - name: Cache node modules diff --git a/.golangci.yml b/.golangci.yml index faf434e4d..a12706bf9 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -5,7 +5,7 @@ run: # Define the Go version limit. # Mainly related to generics support in go1.18. # Default: use Go version from the go.mod file, fallback on the env var `GOVERSION`, fallback on 1.18 - go: '1.21' + go: '1.22' issues: # The linter has a default list of ignorable errors. Turning this on will enable that list. @@ -69,7 +69,7 @@ linters-settings: gosimple: # Select the Go version to target. The default is '1.13'. - go: '1.21' + go: '1.22' # https://staticcheck.io/docs/options#checks checks: ['all'] diff --git a/README.md b/README.md index fdf08c871..991f6478b 100644 --- a/README.md +++ b/README.md @@ -95,7 +95,7 @@ The Owncast backend is a service written in Go. 1. Ensure you have prerequisites installed. - C compiler, such as [GCC compiler](https://gcc.gnu.org/install/download.html) or a [Musl-compatible compiler](https://musl.libc.org/) - [ffmpeg](https://ffmpeg.org/download.html) -1. Install the [Go toolchain](https://golang.org/dl/) (1.21 or above). +1. Install the [Go toolchain](https://golang.org/dl/) (1.22 or above). 1. Clone the repo. `git clone https://github.com/owncast/owncast` 1. `go run main.go` will run from the source. 1. Visit `http://yourserver:8080` to access the web interface or `http://yourserver:8080/admin` to access the admin. diff --git a/go.mod b/go.mod index fa512d859..615c2ee00 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/owncast/owncast -go 1.21 +go 1.22 require ( github.com/aws/aws-sdk-go v1.51.23