From e506dde1c7d37960730377b5a06f39b566652470 Mon Sep 17 00:00:00 2001 From: Shamil <66209982+shamilsan@users.noreply.github.com> Date: Fri, 16 Jun 2023 10:46:09 +0400 Subject: [PATCH 01/18] ci: add workflow for testing formulae --- .github/workflows/test.yml | 73 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..65d81d3 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,73 @@ +name: Test + +on: + pull_request: # TODO: Remove after debugging + branches: [master] + push: + branches: [master] + schedule: + - cron: '0 0 * * *' + +jobs: + test: + name: Test formulae + strategy: + fail-fast: false + matrix: + include: + - os: ubuntu-latest + unimplemented: true # TODO: Remove after adding support for Linux + + - os: macOS-latest + unimplemented: false # TODO: Remove after adding support for Linux + + runs-on: ${{ matrix.os }} + continue-on-error: ${{ matrix.unimplemented }} # TODO: Remove after adding support for Linux + + steps: + - name: Install brew on Linux + if: matrix.os == 'ubuntu-latest' + run: | + sudo apt-get install -y build-essential procps curl file git + + - name: Add Gear tap from PR's branch + if: github.event_name == 'pull_request' + run: brew tap https://github.com/gear-tech/homebrew-gear + + - name: Add Gear tap from master + if: github.event_name == 'push' + run: brew tap gear-tech/gear + + - name: Test Gear formulae + run: | + brew install gear + gear --version && [ "$(gear --version)" = "gear 0.1.6-92ca3911de2" ] + brew install gear@0.1.6 + gear --version && [ "$(gear --version)" = "gear 0.1.6-92ca3911de2" ] + brew install gear@0.1.5 + gear --version && [ "$(gear --version)" = "gear 0.1.6-92ca3911de2" ] + brew install gear@0.1.4 + gear --version && [ "$(gear --version)" = "gear 0.1.6-92ca3911de2" ] + brew install gear@0.1.3 + gear --version && [ "$(gear --version)" = "gear 0.1.6-92ca3911de2" ] + brew install gear@0.1.2 + gear --version && [ "$(gear --version)" = "gear 0.1.6-92ca3911de2" ] + brew install gear@0.1.1 + gear --version && [ "$(gear --version)" = "gear 0.1.6-92ca3911de2" ] + + - name: Test Vara formulae + run: | + brew install vara + gear --version && [ "$(gear --version)" = "gear 0.1.6-92ca3911de2" ] + brew install vara@1.1 + gear --version && [ "$(gear --version)" = "gear 0.1.6-92ca3911de2" ] + brew install vara@1.0 + gear --version && [ "$(gear --version)" = "gear 0.1.6-92ca3911de2" ] + brew install gear@0.1.4 + gear --version && [ "$(gear --version)" = "gear 0.1.6-92ca3911de2" ] + brew install gear@0.1.3 + gear --version && [ "$(gear --version)" = "gear 0.1.6-92ca3911de2" ] + brew install gear@0.1.2 + gear --version && [ "$(gear --version)" = "gear 0.1.6-92ca3911de2" ] + brew install gear@0.1.1 + gear --version && [ "$(gear --version)" = "gear 0.1.6-92ca3911de2" ] From 73a0a82de0fc1c06dc92c219c2f3baabd41241ac Mon Sep 17 00:00:00 2001 From: Shamil <66209982+shamilsan@users.noreply.github.com> Date: Fri, 16 Jun 2023 10:55:05 +0400 Subject: [PATCH 02/18] Update test.yml --- .github/workflows/test.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 65d81d3..6f09af9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,14 +28,16 @@ jobs: - name: Install brew on Linux if: matrix.os == 'ubuntu-latest' run: | - sudo apt-get install -y build-essential procps curl file git + sudo apt-get install -y build-essential + curl -fsSL -o install.sh https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh + # TODO: Find a solution to add a tap from a PR's branch - name: Add Gear tap from PR's branch - if: github.event_name == 'pull_request' - run: brew tap https://github.com/gear-tech/homebrew-gear + if: false # github.event_name == 'pull_request' + run: brew tap https://github.com/gear-tech/homebrew-gear/tree/${{ github.ref_name }} - name: Add Gear tap from master - if: github.event_name == 'push' + if: true # github.event_name == 'push' run: brew tap gear-tech/gear - name: Test Gear formulae From b5656c0c3124ed946be33e2dcc06d7ba9e8ae2b0 Mon Sep 17 00:00:00 2001 From: Shamil <66209982+shamilsan@users.noreply.github.com> Date: Fri, 16 Jun 2023 11:07:26 +0400 Subject: [PATCH 03/18] Update test.yml --- .github/workflows/test.yml | 43 ++++++++++++++++---------------------- 1 file changed, 18 insertions(+), 25 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6f09af9..0b0cf20 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,6 +8,10 @@ on: schedule: - cron: '0 0 * * *' +env: + GEAR_VERSIONS: 0.1.6 0.1.5 0.1.4 0.1.3 0.1.2 0.1.1 + VARA_VERSIONS: 1.1 1.0 + jobs: test: name: Test formulae @@ -28,8 +32,9 @@ jobs: - name: Install brew on Linux if: matrix.os == 'ubuntu-latest' run: | - sudo apt-get install -y build-essential + sudo apt update && sudo apt install -y build-essential curl curl -fsSL -o install.sh https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh + eval "$($HOME/.linuxbrew/bin/brew shellenv)" # TODO: Find a solution to add a tap from a PR's branch - name: Add Gear tap from PR's branch @@ -44,32 +49,20 @@ jobs: run: | brew install gear gear --version && [ "$(gear --version)" = "gear 0.1.6-92ca3911de2" ] - brew install gear@0.1.6 - gear --version && [ "$(gear --version)" = "gear 0.1.6-92ca3911de2" ] - brew install gear@0.1.5 - gear --version && [ "$(gear --version)" = "gear 0.1.6-92ca3911de2" ] - brew install gear@0.1.4 - gear --version && [ "$(gear --version)" = "gear 0.1.6-92ca3911de2" ] - brew install gear@0.1.3 - gear --version && [ "$(gear --version)" = "gear 0.1.6-92ca3911de2" ] - brew install gear@0.1.2 - gear --version && [ "$(gear --version)" = "gear 0.1.6-92ca3911de2" ] - brew install gear@0.1.1 - gear --version && [ "$(gear --version)" = "gear 0.1.6-92ca3911de2" ] + brew rm gear + for GV in $GEAR_VERSIONS; do + brew install gear@$GV + gear --version + brew rm gear@$GV + done - name: Test Vara formulae run: | brew install vara gear --version && [ "$(gear --version)" = "gear 0.1.6-92ca3911de2" ] - brew install vara@1.1 - gear --version && [ "$(gear --version)" = "gear 0.1.6-92ca3911de2" ] - brew install vara@1.0 - gear --version && [ "$(gear --version)" = "gear 0.1.6-92ca3911de2" ] - brew install gear@0.1.4 - gear --version && [ "$(gear --version)" = "gear 0.1.6-92ca3911de2" ] - brew install gear@0.1.3 - gear --version && [ "$(gear --version)" = "gear 0.1.6-92ca3911de2" ] - brew install gear@0.1.2 - gear --version && [ "$(gear --version)" = "gear 0.1.6-92ca3911de2" ] - brew install gear@0.1.1 - gear --version && [ "$(gear --version)" = "gear 0.1.6-92ca3911de2" ] + brew rm vara + for VV in $VARA_VERSIONS; do + brew install vara@$VV + gear --version + brew rm vara@$VV + done From 7a0a174c29e9b9ecd157b6f258011155ebba57df Mon Sep 17 00:00:00 2001 From: Shamil <66209982+shamilsan@users.noreply.github.com> Date: Fri, 16 Jun 2023 11:11:16 +0400 Subject: [PATCH 04/18] Update test.yml --- .github/workflows/test.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0b0cf20..97cce3f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,7 +10,7 @@ on: env: GEAR_VERSIONS: 0.1.6 0.1.5 0.1.4 0.1.3 0.1.2 0.1.1 - VARA_VERSIONS: 1.1 1.0 + VARA_VERSIONS: 1.1 1.0 stable jobs: test: @@ -32,9 +32,9 @@ jobs: - name: Install brew on Linux if: matrix.os == 'ubuntu-latest' run: | - sudo apt update && sudo apt install -y build-essential curl - curl -fsSL -o install.sh https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh + curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh | bash eval "$($HOME/.linuxbrew/bin/brew shellenv)" + brew install hello # TODO: Find a solution to add a tap from a PR's branch - name: Add Gear tap from PR's branch @@ -59,7 +59,7 @@ jobs: - name: Test Vara formulae run: | brew install vara - gear --version && [ "$(gear --version)" = "gear 0.1.6-92ca3911de2" ] + gear --version && [ "$(gear --version)" = "gear 0.1.6-78dfa07ed34" ] brew rm vara for VV in $VARA_VERSIONS; do brew install vara@$VV From 02c024ce8a284e32c390e8506aa75cf21a0a5e2d Mon Sep 17 00:00:00 2001 From: Shamil <66209982+shamilsan@users.noreply.github.com> Date: Fri, 16 Jun 2023 11:14:38 +0400 Subject: [PATCH 05/18] Update test.yml --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 97cce3f..238bf82 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -33,7 +33,7 @@ jobs: if: matrix.os == 'ubuntu-latest' run: | curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh | bash - eval "$($HOME/.linuxbrew/bin/brew shellenv)" + eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" brew install hello # TODO: Find a solution to add a tap from a PR's branch From cab6867cf969e10f927a485cf8589c448b972da2 Mon Sep 17 00:00:00 2001 From: Shamil <66209982+shamilsan@users.noreply.github.com> Date: Fri, 16 Jun 2023 11:16:01 +0400 Subject: [PATCH 06/18] Update test.yml --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 238bf82..f652e1c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,7 +10,7 @@ on: env: GEAR_VERSIONS: 0.1.6 0.1.5 0.1.4 0.1.3 0.1.2 0.1.1 - VARA_VERSIONS: 1.1 1.0 stable + VARA_VERSIONS: 1.1 1.0 jobs: test: From c3865f26870330e78c229cc2eeedcd7834878a78 Mon Sep 17 00:00:00 2001 From: Shamil <66209982+shamilsan@users.noreply.github.com> Date: Fri, 16 Jun 2023 11:17:20 +0400 Subject: [PATCH 07/18] Update test.yml --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f652e1c..fa3b626 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -34,6 +34,7 @@ jobs: run: | curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh | bash eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" + (echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> $HOME/.bash_profile brew install hello # TODO: Find a solution to add a tap from a PR's branch From a33a1b990cf6ecf065395cdb7a49220519fabfd6 Mon Sep 17 00:00:00 2001 From: Shamil <66209982+shamilsan@users.noreply.github.com> Date: Fri, 16 Jun 2023 11:21:03 +0400 Subject: [PATCH 08/18] Update test.yml --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fa3b626..8332c43 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -35,6 +35,7 @@ jobs: curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh | bash eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" (echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> $HOME/.bash_profile + (echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> $HOME/.profile brew install hello # TODO: Find a solution to add a tap from a PR's branch From 1e1b9fbe52443f730061744b04cd9565027594ae Mon Sep 17 00:00:00 2001 From: Shamil <66209982+shamilsan@users.noreply.github.com> Date: Fri, 16 Jun 2023 11:23:32 +0400 Subject: [PATCH 09/18] Update test.yml --- .github/workflows/test.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8332c43..a877bb8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -33,9 +33,7 @@ jobs: if: matrix.os == 'ubuntu-latest' run: | curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh | bash - eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" - (echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> $HOME/.bash_profile - (echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> $HOME/.profile + echo "/home/linuxbrew/.linuxbrew/bin" >> $GITHUB_PATH brew install hello # TODO: Find a solution to add a tap from a PR's branch From dc3dc1570a17775b39157230e0ef5de18e870848 Mon Sep 17 00:00:00 2001 From: Shamil <66209982+shamilsan@users.noreply.github.com> Date: Fri, 16 Jun 2023 11:34:09 +0400 Subject: [PATCH 10/18] Update test.yml --- .github/workflows/test.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a877bb8..7b0bc35 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,8 +22,8 @@ jobs: - os: ubuntu-latest unimplemented: true # TODO: Remove after adding support for Linux - - os: macOS-latest - unimplemented: false # TODO: Remove after adding support for Linux + # - os: macOS-latest + # unimplemented: false # TODO: Remove after adding support for Linux runs-on: ${{ matrix.os }} continue-on-error: ${{ matrix.unimplemented }} # TODO: Remove after adding support for Linux @@ -34,6 +34,9 @@ jobs: run: | curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh | bash echo "/home/linuxbrew/.linuxbrew/bin" >> $GITHUB_PATH + eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" + (echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> $HOME/.bash_profile + (echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> $HOME/.profile brew install hello # TODO: Find a solution to add a tap from a PR's branch @@ -43,7 +46,9 @@ jobs: - name: Add Gear tap from master if: true # github.event_name == 'push' - run: brew tap gear-tech/gear + run: | + echo $PATH + brew tap gear-tech/gear - name: Test Gear formulae run: | From f8a558c769808ec7f25e60731e114a24532389ec Mon Sep 17 00:00:00 2001 From: Shamil <66209982+shamilsan@users.noreply.github.com> Date: Fri, 16 Jun 2023 11:35:26 +0400 Subject: [PATCH 11/18] Update test.yml --- .github/workflows/test.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7b0bc35..02d80f4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,8 +22,8 @@ jobs: - os: ubuntu-latest unimplemented: true # TODO: Remove after adding support for Linux - # - os: macOS-latest - # unimplemented: false # TODO: Remove after adding support for Linux + - os: macOS-latest + unimplemented: false # TODO: Remove after adding support for Linux runs-on: ${{ matrix.os }} continue-on-error: ${{ matrix.unimplemented }} # TODO: Remove after adding support for Linux @@ -47,7 +47,6 @@ jobs: - name: Add Gear tap from master if: true # github.event_name == 'push' run: | - echo $PATH brew tap gear-tech/gear - name: Test Gear formulae From ad84ca5d3aaa7e722f32d8047ba09fdc2d1e40b4 Mon Sep 17 00:00:00 2001 From: Shamil <66209982+shamilsan@users.noreply.github.com> Date: Fri, 16 Jun 2023 11:38:07 +0400 Subject: [PATCH 12/18] Finalize --- .github/workflows/test.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 02d80f4..9fad97d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,7 +1,7 @@ name: Test on: - pull_request: # TODO: Remove after debugging + pull_request: branches: [master] push: branches: [master] @@ -46,8 +46,7 @@ jobs: - name: Add Gear tap from master if: true # github.event_name == 'push' - run: | - brew tap gear-tech/gear + run: brew tap gear-tech/gear - name: Test Gear formulae run: | From ea84fe0cd1df356edacb3d5ccaffdc5d18f230c1 Mon Sep 17 00:00:00 2001 From: Shamil <66209982+shamilsan@users.noreply.github.com> Date: Fri, 16 Jun 2023 11:45:37 +0400 Subject: [PATCH 13/18] Update test.yml --- .github/workflows/test.yml | 71 +++++++++++++++++++++++++++----------- 1 file changed, 51 insertions(+), 20 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9fad97d..45cbaeb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,9 +21,57 @@ jobs: include: - os: ubuntu-latest unimplemented: true # TODO: Remove after adding support for Linux + formula: gear - os: macOS-latest unimplemented: false # TODO: Remove after adding support for Linux + formula: gear + version: 0.1.6-92ca3911de2 + + - os: macOS-latest + unimplemented: false + formula: gear@0.1.6 + version: 0.1.6-92ca3911de2 + + - os: macOS-latest + unimplemented: false + formula: gear@0.1.5 + version: 0.1.6-92ca3911de2 + + - os: macOS-latest + unimplemented: false + formula: gear@0.1.4 + version: 0.1.6-92ca3911de2 + + - os: macOS-latest + unimplemented: false + formula: gear@0.1.3 + version: 0.1.6-92ca3911de2 + + - os: macOS-latest + unimplemented: false + formula: gear@0.1.2 + version: 0.1.6-92ca3911de2 + + - os: macOS-latest + unimplemented: false + formula: gear@0.1.1 + version: 0.1.6-92ca3911de2 + + - os: macOS-latest + unimplemented: false + formula: vara + version: 0.1.6-92ca3911de2 + + - os: macOS-latest + unimplemented: false + formula: vara@1.1 + version: 0.1.6-92ca3911de2 + + - os: macOS-latest + unimplemented: false + formula: vara@1.0 + version: 0.1.6-92ca3911de2 runs-on: ${{ matrix.os }} continue-on-error: ${{ matrix.unimplemented }} # TODO: Remove after adding support for Linux @@ -48,24 +96,7 @@ jobs: if: true # github.event_name == 'push' run: brew tap gear-tech/gear - - name: Test Gear formulae - run: | - brew install gear - gear --version && [ "$(gear --version)" = "gear 0.1.6-92ca3911de2" ] - brew rm gear - for GV in $GEAR_VERSIONS; do - brew install gear@$GV - gear --version - brew rm gear@$GV - done - - - name: Test Vara formulae + - name: Test formula run: | - brew install vara - gear --version && [ "$(gear --version)" = "gear 0.1.6-78dfa07ed34" ] - brew rm vara - for VV in $VARA_VERSIONS; do - brew install vara@$VV - gear --version - brew rm vara@$VV - done + brew install ${{ matrix.formula }} + gear --version && [ "$(gear --version)" = "gear ${{ matrix.version }}" ] From 85e202478e1fcb32e6c9fb32b7bfd2f3617fe079 Mon Sep 17 00:00:00 2001 From: Shamil <66209982+shamilsan@users.noreply.github.com> Date: Fri, 16 Jun 2023 11:49:08 +0400 Subject: [PATCH 14/18] Update test.yml --- .github/workflows/test.yml | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 45cbaeb..35f1242 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,10 +19,17 @@ jobs: fail-fast: false matrix: include: + # Gear Linux formulae - os: ubuntu-latest unimplemented: true # TODO: Remove after adding support for Linux formula: gear + # Vara Linux formulae + - os: ubuntu-latest + unimplemented: true # TODO: Remove after adding support for Linux + formula: vara + + # Gear macOS formulae - os: macOS-latest unimplemented: false # TODO: Remove after adding support for Linux formula: gear @@ -36,42 +43,43 @@ jobs: - os: macOS-latest unimplemented: false formula: gear@0.1.5 - version: 0.1.6-92ca3911de2 + version: 0.1.4-696abd96d43 - os: macOS-latest unimplemented: false formula: gear@0.1.4 - version: 0.1.6-92ca3911de2 + version: 0.1.4-26eb1b4f84d - os: macOS-latest unimplemented: false formula: gear@0.1.3 - version: 0.1.6-92ca3911de2 + version: 0.1.3-e42c79acee5 - os: macOS-latest unimplemented: false formula: gear@0.1.2 - version: 0.1.6-92ca3911de2 + version: 0.1.2-ea26723f253 - os: macOS-latest unimplemented: false formula: gear@0.1.1 - version: 0.1.6-92ca3911de2 + version: 0.1.1-7e596de7ab4 + # Vara macOS formulae - os: macOS-latest unimplemented: false formula: vara - version: 0.1.6-92ca3911de2 + version: 0.1.6-78dfa07ed34 - os: macOS-latest unimplemented: false formula: vara@1.1 - version: 0.1.6-92ca3911de2 + version: 0.1.6-78dfa07ed34 - os: macOS-latest unimplemented: false formula: vara@1.0 - version: 0.1.6-92ca3911de2 + version: 0.1.4-5c685d0f15c runs-on: ${{ matrix.os }} continue-on-error: ${{ matrix.unimplemented }} # TODO: Remove after adding support for Linux From 6f3df8b53821f9f0e3a9687d9bd0ef0a67a0f5d8 Mon Sep 17 00:00:00 2001 From: Shamil <66209982+shamilsan@users.noreply.github.com> Date: Fri, 16 Jun 2023 13:18:41 +0400 Subject: [PATCH 15/18] chore: remove testing formulae on Linux --- .github/workflows/test.yml | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 35f1242..2aa30fd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,72 +19,52 @@ jobs: fail-fast: false matrix: include: - # Gear Linux formulae - - os: ubuntu-latest - unimplemented: true # TODO: Remove after adding support for Linux - formula: gear - - # Vara Linux formulae - - os: ubuntu-latest - unimplemented: true # TODO: Remove after adding support for Linux - formula: vara - # Gear macOS formulae - os: macOS-latest - unimplemented: false # TODO: Remove after adding support for Linux formula: gear version: 0.1.6-92ca3911de2 - os: macOS-latest - unimplemented: false formula: gear@0.1.6 version: 0.1.6-92ca3911de2 - os: macOS-latest - unimplemented: false formula: gear@0.1.5 version: 0.1.4-696abd96d43 - os: macOS-latest - unimplemented: false formula: gear@0.1.4 version: 0.1.4-26eb1b4f84d - os: macOS-latest - unimplemented: false formula: gear@0.1.3 version: 0.1.3-e42c79acee5 - os: macOS-latest - unimplemented: false formula: gear@0.1.2 version: 0.1.2-ea26723f253 - os: macOS-latest - unimplemented: false formula: gear@0.1.1 version: 0.1.1-7e596de7ab4 # Vara macOS formulae - os: macOS-latest - unimplemented: false formula: vara version: 0.1.6-78dfa07ed34 - os: macOS-latest - unimplemented: false formula: vara@1.1 version: 0.1.6-78dfa07ed34 - os: macOS-latest - unimplemented: false formula: vara@1.0 version: 0.1.4-5c685d0f15c runs-on: ${{ matrix.os }} - continue-on-error: ${{ matrix.unimplemented }} # TODO: Remove after adding support for Linux steps: + # Not used but let's keep it for now - name: Install brew on Linux if: matrix.os == 'ubuntu-latest' run: | From c6832a022134a6b1b389701037d66935333cfecc Mon Sep 17 00:00:00 2001 From: Shamil <66209982+shamilsan@users.noreply.github.com> Date: Fri, 16 Jun 2023 13:34:25 +0400 Subject: [PATCH 16/18] chore: remove version checking and cron schedule --- .github/workflows/test.yml | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2aa30fd..ae2d167 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,8 +5,6 @@ on: branches: [master] push: branches: [master] - schedule: - - cron: '0 0 * * *' env: GEAR_VERSIONS: 0.1.6 0.1.5 0.1.4 0.1.3 0.1.2 0.1.1 @@ -22,44 +20,34 @@ jobs: # Gear macOS formulae - os: macOS-latest formula: gear - version: 0.1.6-92ca3911de2 - os: macOS-latest formula: gear@0.1.6 - version: 0.1.6-92ca3911de2 - os: macOS-latest formula: gear@0.1.5 - version: 0.1.4-696abd96d43 - os: macOS-latest formula: gear@0.1.4 - version: 0.1.4-26eb1b4f84d - os: macOS-latest formula: gear@0.1.3 - version: 0.1.3-e42c79acee5 - os: macOS-latest formula: gear@0.1.2 - version: 0.1.2-ea26723f253 - os: macOS-latest formula: gear@0.1.1 - version: 0.1.1-7e596de7ab4 # Vara macOS formulae - os: macOS-latest formula: vara - version: 0.1.6-78dfa07ed34 - os: macOS-latest formula: vara@1.1 - version: 0.1.6-78dfa07ed34 - os: macOS-latest formula: vara@1.0 - version: 0.1.4-5c685d0f15c runs-on: ${{ matrix.os }} @@ -87,4 +75,3 @@ jobs: - name: Test formula run: | brew install ${{ matrix.formula }} - gear --version && [ "$(gear --version)" = "gear ${{ matrix.version }}" ] From 9ccd1b655819a178177518929fb9cc2e391d2c37 Mon Sep 17 00:00:00 2001 From: Shamil <66209982+shamilsan@users.noreply.github.com> Date: Fri, 16 Jun 2023 13:41:52 +0400 Subject: [PATCH 17/18] chore: clean and add issue number --- .github/workflows/test.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ae2d167..f305f85 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,10 +6,6 @@ on: push: branches: [master] -env: - GEAR_VERSIONS: 0.1.6 0.1.5 0.1.4 0.1.3 0.1.2 0.1.1 - VARA_VERSIONS: 1.1 1.0 - jobs: test: name: Test formulae @@ -63,13 +59,13 @@ jobs: (echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> $HOME/.profile brew install hello - # TODO: Find a solution to add a tap from a PR's branch + # TODO: Find a solution to test the tap from a PR's branch (#6) - name: Add Gear tap from PR's branch - if: false # github.event_name == 'pull_request' + if: false # github.event_name == 'pull_request' # TODO: Uncomment after #6 run: brew tap https://github.com/gear-tech/homebrew-gear/tree/${{ github.ref_name }} - name: Add Gear tap from master - if: true # github.event_name == 'push' + if: true # github.event_name == 'push' # TODO: Uncomment after #6 run: brew tap gear-tech/gear - name: Test formula From 585e31cea60c77d46f30a7d8bd16eccd02d6f2ab Mon Sep 17 00:00:00 2001 From: Shamil <66209982+shamilsan@users.noreply.github.com> Date: Fri, 16 Jun 2023 13:44:13 +0400 Subject: [PATCH 18/18] chore: added running binary after installing --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f305f85..54e007f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -71,3 +71,4 @@ jobs: - name: Test formula run: | brew install ${{ matrix.formula }} + gear --version