chore: remove installing bins from workflows (#2346)
This commit is contained in:
parent
c0566a91b2
commit
9f1a1d7a1b
17
.github/actions/install-vega-binaries/action.yml
vendored
17
.github/actions/install-vega-binaries/action.yml
vendored
@ -1,17 +0,0 @@
|
|||||||
inputs:
|
|
||||||
all:
|
|
||||||
description: 'Install all binaries'
|
|
||||||
default: false
|
|
||||||
version:
|
|
||||||
description: 'Vega version'
|
|
||||||
gobin:
|
|
||||||
description: 'GOBIN path'
|
|
||||||
default: '/home/runner/go/bin'
|
|
||||||
runs:
|
|
||||||
using: 'composite'
|
|
||||||
steps:
|
|
||||||
- name: Install Vega binaries
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
wget 'https://github.com/vegaprotocol/vega/releases/download/${{ inputs.version }}/vega-linux-amd64.zip' -q
|
|
||||||
unzip vega-linux-amd64.zip -d ${{ inputs.gobin }}
|
|
20
.github/actions/run-vegacapsule/action.yml
vendored
20
.github/actions/run-vegacapsule/action.yml
vendored
@ -1,26 +1,6 @@
|
|||||||
inputs:
|
|
||||||
github-token:
|
|
||||||
description: 'github token'
|
|
||||||
runs:
|
runs:
|
||||||
using: 'composite'
|
using: 'composite'
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout capsule
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
repository: vegaprotocol/vegacapsule
|
|
||||||
ref: main
|
|
||||||
token: ${{ inputs.github-token }}
|
|
||||||
path: './capsule'
|
|
||||||
|
|
||||||
- name: Build capsule
|
|
||||||
run: go install
|
|
||||||
shell: bash
|
|
||||||
working-directory: capsule
|
|
||||||
|
|
||||||
- name: Login to docker
|
|
||||||
shell: bash
|
|
||||||
run: echo -n ${{ inputs.github-token }} | docker login https://ghcr.io -u vega-ci-bot --password-stdin
|
|
||||||
|
|
||||||
- name: Start nomad
|
- name: Start nomad
|
||||||
shell: bash
|
shell: bash
|
||||||
run: vegacapsule nomad &
|
run: vegacapsule nomad &
|
||||||
|
@ -26,10 +26,6 @@ on:
|
|||||||
required: false
|
required: false
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
env:
|
|
||||||
GOBIN: /home/runner/go/bin
|
|
||||||
VEGA_VERSION: 'v0.63.1'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
manual:
|
manual:
|
||||||
name: Run Cypress tests -- manual trigger
|
name: Run Cypress tests -- manual trigger
|
||||||
@ -43,8 +39,6 @@ jobs:
|
|||||||
run: echo SKIP_NX_CACHE="--skip-nx-cache" >> $GITHUB_ENV
|
run: echo SKIP_NX_CACHE="--skip-nx-cache" >> $GITHUB_ENV
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
vega-version: ${{env.VEGA_VERSION}}
|
|
||||||
gobin: ${{env.GOBIN}}
|
|
||||||
skip-cache: ${{env.SKIP_NX_CACHE}}
|
skip-cache: ${{env.SKIP_NX_CACHE}}
|
||||||
tags: ${{env.TAGS}}
|
tags: ${{env.TAGS}}
|
||||||
|
|
||||||
@ -54,7 +48,5 @@ jobs:
|
|||||||
secrets: inherit
|
secrets: inherit
|
||||||
with:
|
with:
|
||||||
project: ${{ inputs.project }}
|
project: ${{ inputs.project }}
|
||||||
vega-version: ${{needs.manual.outputs.vega-version}}
|
|
||||||
gobin: ${{needs.manual.outputs.gobin}}
|
|
||||||
skip-cache: ${{needs.manual.outputs.skip-cache}}
|
skip-cache: ${{needs.manual.outputs.skip-cache}}
|
||||||
tags: ${{needs.manual.outputs.tags}}
|
tags: ${{needs.manual.outputs.tags}}
|
||||||
|
@ -13,7 +13,5 @@ jobs:
|
|||||||
secrets: inherit
|
secrets: inherit
|
||||||
with:
|
with:
|
||||||
project: '[console-lite-e2e, explorer-e2e, liquidity-provision-dashboard-e2e, stats-e2e, token-e2e, trading-e2e]'
|
project: '[console-lite-e2e, explorer-e2e, liquidity-provision-dashboard-e2e, stats-e2e, token-e2e, trading-e2e]'
|
||||||
vega-version: 'v0.63.1'
|
|
||||||
gobin: /home/runner/go/bin
|
|
||||||
tags: --env.grepTags '[ @smoke, @regression, @slow ]'
|
tags: --env.grepTags '[ @smoke, @regression, @slow ]'
|
||||||
night-run: true
|
night-run: true
|
||||||
|
9
.github/workflows/capsule-cypress.yml
vendored
9
.github/workflows/capsule-cypress.yml
vendored
@ -11,11 +11,6 @@ on:
|
|||||||
- reopened
|
- reopened
|
||||||
- synchronize
|
- synchronize
|
||||||
- ready_for_review
|
- ready_for_review
|
||||||
|
|
||||||
env:
|
|
||||||
GOBIN: /home/runner/go/bin
|
|
||||||
VEGA_VERSION: 'v0.63.1'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
pr:
|
pr:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -56,8 +51,6 @@ jobs:
|
|||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
projects: ${{ env.AFFECTED }}
|
projects: ${{ env.AFFECTED }}
|
||||||
vega-version: ${{ env.VEGA_VERSION }}
|
|
||||||
gobin: ${{ env.GOBIN }}
|
|
||||||
|
|
||||||
dispatch:
|
dispatch:
|
||||||
needs: pr
|
needs: pr
|
||||||
@ -65,6 +58,4 @@ jobs:
|
|||||||
secrets: inherit
|
secrets: inherit
|
||||||
with:
|
with:
|
||||||
project: ${{ needs.pr.outputs.projects }}
|
project: ${{ needs.pr.outputs.projects }}
|
||||||
vega-version: ${{needs.pr.outputs.vega-version}}
|
|
||||||
gobin: ${{needs.pr.outputs.gobin}}
|
|
||||||
tags: "--env.grepTags='[ @smoke, @regression ]'"
|
tags: "--env.grepTags='[ @smoke, @regression ]'"
|
||||||
|
21
.github/workflows/cypress-console-lite-e2e.yml
vendored
21
.github/workflows/cypress-console-lite-e2e.yml
vendored
@ -7,13 +7,6 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
default: 'false'
|
default: 'false'
|
||||||
vega-version:
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
gobin:
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
default: /home/runner/go/bin
|
|
||||||
skip-cache:
|
skip-cache:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
@ -26,10 +19,6 @@ jobs:
|
|||||||
if: ${{ inputs.trigger == 'true' }}
|
if: ${{ inputs.trigger == 'true' }}
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
steps:
|
steps:
|
||||||
# Add GOBIN to PATH
|
|
||||||
- name: Add GOBIN to PATH
|
|
||||||
run: echo ${{ inputs.gobin }} >> $GITHUB_PATH
|
|
||||||
|
|
||||||
# Checkout front ends
|
# Checkout front ends
|
||||||
- name: Checkout frontend mono repo
|
- name: Checkout frontend mono repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@ -51,16 +40,6 @@ jobs:
|
|||||||
run: yarn install --frozen-lockfile
|
run: yarn install --frozen-lockfile
|
||||||
working-directory: frontend-monorepo
|
working-directory: frontend-monorepo
|
||||||
|
|
||||||
#######
|
|
||||||
## Build and run Vegacapsule network
|
|
||||||
#######
|
|
||||||
|
|
||||||
- name: Install Vega binaries
|
|
||||||
uses: ./frontend-monorepo/.github/actions/install-vega-binaries
|
|
||||||
with:
|
|
||||||
version: ${{ inputs.vega-version }}
|
|
||||||
gobin: ${{ inputs.gobin }}
|
|
||||||
|
|
||||||
######
|
######
|
||||||
## Setup a Vega wallet for our user
|
## Setup a Vega wallet for our user
|
||||||
######
|
######
|
||||||
|
19
.github/workflows/cypress-explorer-e2e.yml
vendored
19
.github/workflows/cypress-explorer-e2e.yml
vendored
@ -7,13 +7,6 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
default: 'false'
|
default: 'false'
|
||||||
vega-version:
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
gobin:
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
default: /home/runner/go/bin
|
|
||||||
skip-cache:
|
skip-cache:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
@ -31,10 +24,6 @@ jobs:
|
|||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
steps:
|
steps:
|
||||||
# Add GOBIN to PATH
|
|
||||||
- name: Add GOBIN to PATH
|
|
||||||
run: echo ${{ inputs.gobin }} >> $GITHUB_PATH
|
|
||||||
|
|
||||||
# Checkout front ends
|
# Checkout front ends
|
||||||
- name: Checkout frontend mono repo
|
- name: Checkout frontend mono repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@ -60,16 +49,8 @@ jobs:
|
|||||||
## Build and run Vegacapsule network
|
## Build and run Vegacapsule network
|
||||||
#######
|
#######
|
||||||
|
|
||||||
- name: Install Vega binaries
|
|
||||||
uses: ./frontend-monorepo/.github/actions/install-vega-binaries
|
|
||||||
with:
|
|
||||||
version: ${{ inputs.vega-version }}
|
|
||||||
gobin: ${{ inputs.gobin }}
|
|
||||||
|
|
||||||
- name: Build and run Vegacapsule network
|
- name: Build and run Vegacapsule network
|
||||||
uses: ./frontend-monorepo/.github/actions/run-vegacapsule
|
uses: ./frontend-monorepo/.github/actions/run-vegacapsule
|
||||||
with:
|
|
||||||
github-token: ${{ secrets.VEGA_CI_BOT_GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
######
|
######
|
||||||
## Setup a Vega wallet for our user
|
## Setup a Vega wallet for our user
|
||||||
|
19
.github/workflows/cypress-token-e2e.yml
vendored
19
.github/workflows/cypress-token-e2e.yml
vendored
@ -7,13 +7,6 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
default: 'false'
|
default: 'false'
|
||||||
vega-version:
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
gobin:
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
default: /home/runner/go/bin
|
|
||||||
skip-cache:
|
skip-cache:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
@ -27,10 +20,6 @@ jobs:
|
|||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
steps:
|
steps:
|
||||||
# Add GOBIN to PATH
|
|
||||||
- name: Add GOBIN to PATH
|
|
||||||
run: echo ${{ inputs.gobin }} >> $GITHUB_PATH
|
|
||||||
|
|
||||||
# Checkout front ends
|
# Checkout front ends
|
||||||
- name: Checkout frontend mono repo
|
- name: Checkout frontend mono repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@ -56,16 +45,8 @@ jobs:
|
|||||||
## Build and run Vegacapsule network
|
## Build and run Vegacapsule network
|
||||||
#######
|
#######
|
||||||
|
|
||||||
- name: Install Vega binaries
|
|
||||||
uses: ./frontend-monorepo/.github/actions/install-vega-binaries
|
|
||||||
with:
|
|
||||||
version: ${{ inputs.vega-version }}
|
|
||||||
gobin: ${{ inputs.gobin }}
|
|
||||||
|
|
||||||
- name: Build and run Vegacapsule network
|
- name: Build and run Vegacapsule network
|
||||||
uses: ./frontend-monorepo/.github/actions/run-vegacapsule
|
uses: ./frontend-monorepo/.github/actions/run-vegacapsule
|
||||||
with:
|
|
||||||
github-token: ${{ secrets.VEGA_CI_BOT_GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
######
|
######
|
||||||
## Setup a Vega wallet for our user
|
## Setup a Vega wallet for our user
|
||||||
|
21
.github/workflows/cypress-trading-e2e.yml
vendored
21
.github/workflows/cypress-trading-e2e.yml
vendored
@ -7,13 +7,6 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
default: 'false'
|
default: 'false'
|
||||||
vega-version:
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
gobin:
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
default: /home/runner/go/bin
|
|
||||||
skip-cache:
|
skip-cache:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
@ -27,10 +20,6 @@ jobs:
|
|||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
steps:
|
steps:
|
||||||
# Add GOBIN to PATH
|
|
||||||
- name: Add GOBIN to PATH
|
|
||||||
run: echo ${{ inputs.gobin }} >> $GITHUB_PATH
|
|
||||||
|
|
||||||
# Checkout front ends
|
# Checkout front ends
|
||||||
- name: Checkout frontend mono repo
|
- name: Checkout frontend mono repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@ -52,16 +41,6 @@ jobs:
|
|||||||
run: yarn install --frozen-lockfile
|
run: yarn install --frozen-lockfile
|
||||||
working-directory: frontend-monorepo
|
working-directory: frontend-monorepo
|
||||||
|
|
||||||
#######
|
|
||||||
## Build and run Vegacapsule network
|
|
||||||
#######
|
|
||||||
|
|
||||||
- name: Install Vega binaries
|
|
||||||
uses: ./frontend-monorepo/.github/actions/install-vega-binaries
|
|
||||||
with:
|
|
||||||
version: ${{ inputs.vega-version }}
|
|
||||||
gobin: ${{ inputs.gobin }}
|
|
||||||
|
|
||||||
######
|
######
|
||||||
## Setup a Vega wallet for our user
|
## Setup a Vega wallet for our user
|
||||||
######
|
######
|
||||||
|
15
.github/workflows/tests-dispatcher.yml
vendored
15
.github/workflows/tests-dispatcher.yml
vendored
@ -4,13 +4,6 @@ on:
|
|||||||
project:
|
project:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
vega-version:
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
gobin:
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
default: /home/runner/go/bin
|
|
||||||
skip-cache:
|
skip-cache:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
@ -27,8 +20,6 @@ jobs:
|
|||||||
secrets: inherit
|
secrets: inherit
|
||||||
with:
|
with:
|
||||||
trigger: ${{ contains(inputs.project, 'console-lite-e2e') || contains(inputs.project, 'console-lite') }}
|
trigger: ${{ contains(inputs.project, 'console-lite-e2e') || contains(inputs.project, 'console-lite') }}
|
||||||
vega-version: ${{ inputs.vega-version }}
|
|
||||||
gobin: ${{ inputs.gobin }}
|
|
||||||
skip-cache: ${{ inputs.skip-cache }}
|
skip-cache: ${{ inputs.skip-cache }}
|
||||||
tags: ${{ inputs.tags }}
|
tags: ${{ inputs.tags }}
|
||||||
|
|
||||||
@ -37,8 +28,6 @@ jobs:
|
|||||||
secrets: inherit
|
secrets: inherit
|
||||||
with:
|
with:
|
||||||
trigger: ${{ contains(inputs.project, 'explorer-e2e') || contains(inputs.project, 'explorer') }}
|
trigger: ${{ contains(inputs.project, 'explorer-e2e') || contains(inputs.project, 'explorer') }}
|
||||||
vega-version: ${{ inputs.vega-version }}
|
|
||||||
gobin: ${{ inputs.gobin }}
|
|
||||||
skip-cache: ${{ inputs.skip-cache }}
|
skip-cache: ${{ inputs.skip-cache }}
|
||||||
tags: ${{ inputs.tags }}
|
tags: ${{ inputs.tags }}
|
||||||
night-run: ${{ inputs.night-run }}
|
night-run: ${{ inputs.night-run }}
|
||||||
@ -60,8 +49,6 @@ jobs:
|
|||||||
secrets: inherit
|
secrets: inherit
|
||||||
with:
|
with:
|
||||||
trigger: ${{ contains(inputs.project, 'token-e2e') || contains(inputs.project, 'token') }}
|
trigger: ${{ contains(inputs.project, 'token-e2e') || contains(inputs.project, 'token') }}
|
||||||
vega-version: ${{ inputs.vega-version }}
|
|
||||||
gobin: ${{ inputs.gobin }}
|
|
||||||
skip-cache: ${{ inputs.skip-cache }}
|
skip-cache: ${{ inputs.skip-cache }}
|
||||||
tags: ${{ inputs.tags }}
|
tags: ${{ inputs.tags }}
|
||||||
|
|
||||||
@ -70,7 +57,5 @@ jobs:
|
|||||||
secrets: inherit
|
secrets: inherit
|
||||||
with:
|
with:
|
||||||
trigger: ${{ contains(inputs.project, 'trading-e2e') || contains(inputs.project, 'trading') }}
|
trigger: ${{ contains(inputs.project, 'trading-e2e') || contains(inputs.project, 'trading') }}
|
||||||
vega-version: ${{ inputs.vega-version }}
|
|
||||||
gobin: ${{ inputs.gobin }}
|
|
||||||
skip-cache: ${{ inputs.skip-cache }}
|
skip-cache: ${{ inputs.skip-cache }}
|
||||||
tags: ${{ inputs.tags }}
|
tags: ${{ inputs.tags }}
|
||||||
|
Loading…
Reference in New Issue
Block a user