diff --git a/.github/workflows/e2e_test_darwin.yaml b/.github/workflows/e2e_test_darwin.yaml index 6a0ad1e..2f971ba 100644 --- a/.github/workflows/e2e_test_darwin.yaml +++ b/.github/workflows/e2e_test_darwin.yaml @@ -19,11 +19,17 @@ jobs: steps: - uses: actions/checkout@v4 - - name: install vfox (MacOS) - if: runner.os == 'MacOS' + - uses: actions/setup-go@v5 + with: + go-version: '^1.24.2' # The Go version to download (if necessary) and use. + + - name: build vfox (MacOS) run: | - brew tap version-fox/tap - brew install vfox@0.6.4 + git clone https://github.com/version-fox/vfox.git + cd vfox + go build -o vfox + chmod +x vfox + cp vfox /usr/local/bin - name: add vfox-erlang plugin (Unix-like) run: | diff --git a/.github/workflows/e2e_test_linux.yaml b/.github/workflows/e2e_test_linux.yaml index d45f5f8..dfb1084 100644 --- a/.github/workflows/e2e_test_linux.yaml +++ b/.github/workflows/e2e_test_linux.yaml @@ -19,11 +19,17 @@ jobs: steps: - uses: actions/checkout@v4 - - name: install vfox (Linux) + - uses: actions/setup-go@v5 + with: + go-version: '^1.24.2' # The Go version to download (if necessary) and use. + + - name: build vfox (Linux) run: | - echo "deb [trusted=yes] https://apt.fury.io/versionfox/ /" | sudo tee /etc/apt/sources.list.d/versionfox.list - sudo apt-get update - sudo apt-get install vfox=0.6.4 + git clone https://github.com/version-fox/vfox.git + cd vfox + go build -o vfox + chmod +x vfox + cp vfox /usr/local/bin - name: add vfox-erlang plugin (Unix-like) run: | diff --git a/.github/workflows/e2e_test_linux_prebuilt.yaml b/.github/workflows/e2e_test_linux_prebuilt.yaml index b6daf1a..80d4788 100644 --- a/.github/workflows/e2e_test_linux_prebuilt.yaml +++ b/.github/workflows/e2e_test_linux_prebuilt.yaml @@ -2,7 +2,7 @@ name: E2E tests on Linux (Prebuilt release) on: push: - branches: [main] + # branches: [main] pull_request: workflow_dispatch: schedule: @@ -19,14 +19,21 @@ jobs: steps: - uses: actions/checkout@v4 - - name: install vfox (Linux) + - uses: actions/setup-go@v5 + with: + go-version: '^1.24.2' # The Go version to download (if necessary) and use. + + - name: build vfox (Linux) run: | - echo "deb [trusted=yes] https://apt.fury.io/versionfox/ /" | sudo tee /etc/apt/sources.list.d/versionfox.list - sudo apt-get update - sudo apt-get install vfox=0.6.4 + git clone https://github.com/version-fox/vfox.git + cd vfox + go build -o vfox + chmod +x vfox + cp vfox /usr/local/bin - name: add vfox-erlang plugin (Unix-like) run: | + vfox -version vfox add --source https://github.com/version-fox/vfox-erlang/archive/${GITHUB_REF}.zip erlang - name: prepare Erlang/OTP deps (Linux) diff --git a/.github/workflows/e2e_test_windows.yaml b/.github/workflows/e2e_test_windows.yaml index 0b3fd1c..dda637d 100644 --- a/.github/workflows/e2e_test_windows.yaml +++ b/.github/workflows/e2e_test_windows.yaml @@ -19,14 +19,17 @@ jobs: steps: - uses: actions/checkout@v4 - - name: install scoop (Windows) - if: runner.os == 'Windows' - uses: MinoruSekine/setup-scoop@v3 + - uses: actions/setup-go@v5 + with: + go-version: '^1.24.2' # The Go version to download (if necessary) and use. - - name: install vfox (Windows) - if: runner.os == 'Windows' + - name: build vfox (Windows) run: | - scoop install vfox@0.6.4 + git clone https://github.com/version-fox/vfox.git + cd vfox + go build -o vfox.exe + echo "$pwd" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append + ./vfox.exe -version - name: add vfox-erlang plugin (Windows) if: runner.os == 'Windows'