diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4afb66b..576ed8f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,7 +3,7 @@ name: Test on: push: branches: - - master + - master pull_request: jobs: @@ -11,47 +11,43 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - version: [ - "1.0.0.preview1", - "0.6.4-mrb", - "1.2.2" - ] + version: ["1.0.0.preview1", "0.6.4-mrb", "1.2.2"] default: [false] include: - - version: "1.5.1" + - version: "1.5.4" default: true steps: - - uses: actions/checkout@v2 - - run: | - rm test/env/HEROKU_ANYCABLE_GO_VERSION - - name: Add GitHub token (to avoid rate limiting issues) - run: | - echo "${{ secrets.GITHUB_TOKEN }}" >> test/env/HEROKU_ANYCABLE_GO_GITHUB_TOKEN - - name: Set version - if: ${{ !matrix.default }} - run: | - echo "${{ matrix.version }}" >> test/env/HEROKU_ANYCABLE_GO_VERSION - - name: Prepare Docker image - run: docker build -t anycable-go-test . - - run: | - echo "DEBUG VERSION: $(docker run anycable-go-test)" - docker run anycable-go-test | grep -q "${{ matrix.version }}" + - uses: actions/checkout@v4 + - run: | + rm test/env/HEROKU_ANYCABLE_GO_VERSION + - name: Add GitHub token (to avoid rate limiting issues) + run: | + echo "${{ secrets.GITHUB_TOKEN }}" >> test/env/HEROKU_ANYCABLE_GO_GITHUB_TOKEN + - name: Set version + if: ${{ !matrix.default }} + run: | + echo "${{ matrix.version }}" >> test/env/HEROKU_ANYCABLE_GO_VERSION + - name: Prepare Docker image + run: docker build -t anycable-go-test . + - run: | + echo "DEBUG VERSION: $(docker run anycable-go-test)" + docker run anycable-go-test | grep -q "${{ matrix.version }}" test_custom_repo: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - run: | - rm test/env/HEROKU_ANYCABLE_GO_VERSION - - name: Add GitHub token (to avoid rate limiting issues) - run: | - echo "${{ secrets.GITHUB_TOKEN }}" >> test/env/HEROKU_ANYCABLE_GO_GITHUB_TOKEN - - name: Set custom source data - run: | - echo "https://github.com/anycable/websocket-bench" >> test/env/HEROKU_ANYCABLE_GO_REPO - echo "websocket-bench" >> test/env/HEROKU_ANYCABLE_GO_BINARY_NAME - echo "0.3.0" >> test/env/HEROKU_ANYCABLE_GO_VERSION - echo "false" >> test/env/HEROKU_ANYCABLE_GO_VERSION_SUFFIX - - name: Prepare Docker image - run: docker build -t anycable-go-test . - - run: | - docker run anycable-go-test /app/bin/websocket-bench -h | grep -q "0.3.0" + - uses: actions/checkout@v4 + - run: | + rm test/env/HEROKU_ANYCABLE_GO_VERSION + - name: Add GitHub token (to avoid rate limiting issues) + run: | + echo "${{ secrets.GITHUB_TOKEN }}" >> test/env/HEROKU_ANYCABLE_GO_GITHUB_TOKEN + - name: Set custom source data + run: | + echo "https://github.com/anycable/websocket-bench" >> test/env/HEROKU_ANYCABLE_GO_REPO + echo "websocket-bench" >> test/env/HEROKU_ANYCABLE_GO_BINARY_NAME + echo "0.3.0" >> test/env/HEROKU_ANYCABLE_GO_VERSION + echo "false" >> test/env/HEROKU_ANYCABLE_GO_VERSION_SUFFIX + - name: Prepare Docker image + run: docker build -t anycable-go-test . + - run: | + docker run anycable-go-test /app/bin/websocket-bench -h | grep -q "0.3.0" diff --git a/README.md b/README.md index ea2e60f..75e72df 100755 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ This is a [Heroku buildpack][0] for bundling a compatible [anycable-go][1] binary with your environment. -Anycable-Go version (default): `1.5.1` +Anycable-Go version (default): `1.5.4` ## Usage diff --git a/bin/compile b/bin/compile index 4671e2e..eae87d6 100755 --- a/bin/compile +++ b/bin/compile @@ -26,7 +26,7 @@ chmod +x $FETCH_PATH if [ -f "$ENV_DIR/HEROKU_ANYCABLE_GO_VERSION" ]; then version=`cat $ENV_DIR/HEROKU_ANYCABLE_GO_VERSION` else - version="1.5.1" + version="1.5.4" fi if [ -f "$ENV_DIR/HEROKU_ANYCABLE_GO_REPO" ]; then