diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index df13d6d..661d84d 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -35,11 +35,11 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2.3.4 + uses: actions/checkout@v4.1.1 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v1 + uses: github/codeql-action/init@v3 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -50,7 +50,7 @@ jobs: # 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@v1 + uses: github/codeql-action/autobuild@v3 # ℹī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -64,4 +64,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 + uses: github/codeql-action/analyze@v3 diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index fd5e71d..528e0f7 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -14,7 +14,7 @@ jobs: outputs: has-docker: ${{ steps.info.outputs.has-docker }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: '0' - uses: moul/repoman-action@v1 @@ -27,15 +27,15 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2.3.4 + uses: actions/checkout@v4.1.1 - name: Build the container image - uses: docker/build-push-action@v2.5.0 + uses: docker/build-push-action@v5.1.0 with: repository: midcat - name: Push to GitHub Packages - uses: docker/build-push-action@v2.5.0 + uses: docker/build-push-action@v5.1.0 if: github.event_name == 'release' || github.event_name == 'push' with: username: ${{ github.actor }} @@ -66,7 +66,7 @@ jobs: if: | (github.event_name == 'release' || github.event_name == 'push') && contains(steps.check_dockerhub_credentials.outputs.missingsecrets, 'no') - uses: docker/build-push-action@v2.5.0 + uses: docker/build-push-action@v5.1.0 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index cba3c53..88db500 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -32,7 +32,7 @@ jobs: outputs: has-go-binary: ${{ steps.info.outputs.has-go-binary }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: '0' - uses: moul/repoman-action@v1 @@ -47,19 +47,19 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2.3.4 + uses: actions/checkout@v4.1.1 - name: Set up Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.golang }} - name: Cache Go modules - uses: actions/cache@v2.1.6 + uses: actions/cache@v4.0.0 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ matrix.golang }}-v1-${{ hashFiles('**/go.sum') }} restore-keys: ${{ runner.os }}-go-${{ matrix.golang }}-v1- - name: Run GoReleaser (Dry Run) - uses: goreleaser/goreleaser-action@v2.6.1 + uses: goreleaser/goreleaser-action@v5.0.0 with: version: latest args: release --rm-dist --snapshot --skip-publish @@ -71,10 +71,10 @@ jobs: matrix: golangci_lint: [v1.38] steps: - - uses: actions/checkout@v2.3.4 + - uses: actions/checkout@v4.1.1 - name: golangci-lint if: false # temporarily disabled - uses: golangci/golangci-lint-action@v2.5.2 + uses: golangci/golangci-lint-action@v4.0.0 with: version: ${{ matrix.golangci_lint }} #github-token: ${{ secrets.GITHUB_TOKEN }} @@ -88,9 +88,9 @@ jobs: matrix: golang: [1.16.x] steps: - - uses: actions/checkout@v2.3.4 + - uses: actions/checkout@v4.1.1 - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.golang }} - name: Run tests on Windows @@ -106,12 +106,12 @@ jobs: OS: macos-latest GOLANG: ${{ matrix.golang }} steps: - - uses: actions/checkout@v2.3.4 + - uses: actions/checkout@v4.1.1 - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.golang }} - - uses: actions/cache@v2.1.6 + - uses: actions/cache@v4.0.0 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ matrix.golang }}-v1-${{ hashFiles('**/go.sum') }} @@ -127,7 +127,7 @@ jobs: git --no-pager diff go.mod go.sum git --no-pager diff --quiet go.mod go.sum - name: Upload coverage to Codecov - uses: codecov/codecov-action@v1.5.2 + uses: codecov/codecov-action@v4.0.1 with: #token: ${{ secrets.CODECOV_TOKEN }} file: ./coverage.txt @@ -148,12 +148,12 @@ jobs: OS: ubuntu-latest GOLANG: ${{ matrix.golang }} steps: - - uses: actions/checkout@v2.3.4 + - uses: actions/checkout@v4.1.1 - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.golang }} - - uses: actions/cache@v2.1.6 + - uses: actions/cache@v4.0.0 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ matrix.golang }}-v1-${{ hashFiles('**/go.sum') }} @@ -169,7 +169,7 @@ jobs: - name: Run tests on Unix-like operating systems run: make unittest - name: Upload coverage to Codecov - uses: codecov/codecov-action@v1.5.2 + uses: codecov/codecov-action@v4.0.1 with: #token: ${{ secrets.CODECOV_TOKEN }} file: ./coverage.txt diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 7b3c4ff..e6b6baf 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -12,7 +12,7 @@ jobs: name: Release-Notes Preview runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2.3.4 + - uses: actions/checkout@v4.1.1 - run: | git fetch --prune --unshallow --tags - uses: snyk/release-notes-preview@v1.6.2 @@ -26,7 +26,7 @@ jobs: name: Documentation runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2.3.4 + - uses: actions/checkout@v4.1.1 with: depth: 1 - uses: nosborn/github-action-markdown-cli@master diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9f1018f..8bc94aa 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,7 +15,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2.3.4 + uses: actions/checkout@v4.1.1 - name: Unshallow run: git fetch --prune --unshallow @@ -25,19 +25,19 @@ jobs: - name: Run Semantic Release id: semantic - uses: docker://ghcr.io/codfish/semantic-release-action:v1 + uses: docker://ghcr.io/codfish/semantic-release-action:v3 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Set up Go if: steps.semantic.outputs.new-release-published == 'true' && steps.repoman.outputs.has-go-binary == 'true' - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.golang }} - name: Cache Go modules if: steps.semantic.outputs.new-release-published == 'true' && steps.repoman.outputs.has-go-binary == 'true' - uses: actions/cache@v2.1.6 + uses: actions/cache@v4.0.0 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ matrix.golang }}-v1-${{ hashFiles('**/go.sum') }} diff --git a/go.mod b/go.mod index 4cf4b1f..67013a3 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,8 @@ require ( github.com/oklog/run v1.1.0 github.com/peterbourgon/ff/v3 v3.0.0 github.com/tailscale/depaware v0.0.0-20201214215404-77d1e9757027 - gitlab.com/gomidi/midi v1.23.7 + gitlab.com/gomidi/midi v1.21.0 + gitlab.com/gomidi/midi/v2 v2.1.7 gitlab.com/gomidi/rtmididrv v0.13.0 go.uber.org/goleak v1.1.10 go.uber.org/multierr v1.7.0 diff --git a/go.sum b/go.sum index 4359fd0..2069332 100644 --- a/go.sum +++ b/go.sum @@ -34,9 +34,12 @@ github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/ github.com/tailscale/depaware v0.0.0-20201214215404-77d1e9757027 h1:lK99QQdH3yBWY6aGilF+IRlQIdmhzLrsEmF6JgN+Ryw= github.com/tailscale/depaware v0.0.0-20201214215404-77d1e9757027/go.mod h1:p9lPsd+cx33L3H9nNoecRRxPssFKUwwI50I3pZ0yT+8= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +gitlab.com/golang-utils/version v1.0.1/go.mod h1:6ogVlvvD9lN0lByxjfnnsa66aFbtuv/37eBMGIAE+XQ= +gitlab.com/gomidi/midi v1.21.0 h1:eyoUlx7/PTRUcmWWWD3OKxUYuRWbcDa2rCvRYY7Y4yc= gitlab.com/gomidi/midi v1.21.0/go.mod h1:3ohtNOhqoSakkuLG/Li1OI6I3J1c2LErnJF5o/VBq1c= gitlab.com/gomidi/midi v1.23.7 h1:I6qKoIk9s9dcX+pNf0jC+tziCzJFn82bMpuntRkLeik= gitlab.com/gomidi/midi v1.23.7/go.mod h1:3ohtNOhqoSakkuLG/Li1OI6I3J1c2LErnJF5o/VBq1c= +gitlab.com/gomidi/midi/v2 v2.1.7/go.mod h1:Cj6K9VH5GhYvPgL2JddxHBmZiP3nxKxB5XyTxiXvL9U= gitlab.com/gomidi/rtmididrv v0.13.0 h1:fMX5Wt2wmdt+gJtR7K3ZGvNV4RzdRgS8AquHZ9wW1Zs= gitlab.com/gomidi/rtmididrv v0.13.0/go.mod h1:p/6IL1LGgj7utcv3wXudsDWiD9spgAdn0O8LDsGIPG0= go.uber.org/atomic v1.6.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= diff --git a/tool/lint/package.json b/tool/lint/package.json index 5493049..1f48c7c 100644 --- a/tool/lint/package.json +++ b/tool/lint/package.json @@ -1,6 +1,6 @@ { "dependencies": { - "alex": "9.1.0", + "alex": "11.0.1", "markdown-spellcheck": "1.3.1", "markdownlint-cli": "0.27.1", "remark-cli": "9.0.0",