rename workflows and fixing ginkgo version to v2 #32
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (C) 2023, Ava Labs, Inc. All rights reserved. | |
# See the file LICENSE for licensing terms. | |
name: Relayer Tests | |
on: | |
push: | |
branches: | |
- "*" | |
jobs: | |
build-test-relayer: | |
name: Build + Unit tests | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
path: awm-relayer | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "1.20.7" | |
- name: Build Relayer | |
run: | | |
cd awm-relayer | |
go mod tidy | |
./scripts/build.sh | |
- name: Run Relayer Unit Tests | |
run: | | |
cd awm-relayer | |
go test ./... | |
e2e_tests: | |
runs-on: ubuntu-20.04 | |
name: e2e_tests | |
steps: | |
- name: Checkout subnet-evm repository | |
uses: actions/checkout@v3 | |
with: | |
repository: ava-labs/subnet-evm | |
ref: v0.5.4 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "1.20.7" | |
- name: Install AvalancheGo Release | |
shell: bash | |
run: BASEDIR=/tmp/e2e-test AVALANCHEGO_BUILD_PATH=/tmp/e2e-test/avalanchego ./scripts/install_avalanchego_release.sh | |
- name: Build Subnet-EVM Plugin Binary | |
shell: bash | |
run: ./scripts/build.sh /tmp/e2e-test/avalanchego/plugins/srEXiWaHuhNyGwPUi444Tu47ZEDwxTWrbQiuD7FmgSAQ6X7Dy | |
- name: Checkout awm-relayer repository | |
uses: actions/checkout@v3 | |
- name: Run E2E Tests | |
shell: bash | |
run: AVALANCHEGO_BUILD_PATH=/tmp/e2e-test/avalanchego DATA_DIR=/tmp/e2e-test/data ./scripts/e2e_test.sh |