Minimal set of working Gitea workflows. #138
@ -7,21 +7,21 @@ on:
|
|||||||
- release/**
|
- release/**
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test-unit-cover:
|
# test-unit-cover:
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
steps:
|
# steps:
|
||||||
- uses: actions/setup-go@v3
|
# - uses: actions/setup-go@v3
|
||||||
with:
|
# with:
|
||||||
go-version: 1.19
|
# go-version: 1.19
|
||||||
check-latest: true
|
# check-latest: true
|
||||||
- uses: actions/checkout@v3
|
# - uses: actions/checkout@v3
|
||||||
- name: Test and Create Coverage Report
|
# - name: Test and Create Coverage Report
|
||||||
run: |
|
# run: |
|
||||||
make test-unit-cover
|
# make test-unit-cover
|
||||||
- uses: codecov/codecov-action@v3
|
# - uses: codecov/codecov-action@v3
|
||||||
with:
|
# with:
|
||||||
file: ./coverage.txt
|
# file: ./coverage.txt
|
||||||
fail_ci_if_error: false
|
# fail_ci_if_error: false
|
||||||
|
|
||||||
test-importer:
|
test-importer:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -36,18 +36,18 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
make test-import
|
make test-import
|
||||||
|
|
||||||
test-rpc:
|
# test-rpc:
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
timeout-minutes: 15
|
# timeout-minutes: 15
|
||||||
steps:
|
# steps:
|
||||||
- uses: actions/setup-go@v3
|
# - uses: actions/setup-go@v3
|
||||||
with:
|
# with:
|
||||||
go-version: 1.19
|
# go-version: 1.19
|
||||||
check-latest: true
|
# check-latest: true
|
||||||
- uses: actions/checkout@v3
|
# - uses: actions/checkout@v3
|
||||||
- name: Test rpc endpoint
|
# - name: Test rpc endpoint
|
||||||
run: |
|
# run: |
|
||||||
make test-rpc
|
# make test-rpc
|
||||||
|
|
||||||
sdk_tests:
|
sdk_tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -66,6 +66,7 @@ jobs:
|
|||||||
- name: Build laconicd container
|
- name: Build laconicd container
|
||||||
working-directory: tests/sdk_tests
|
working-directory: tests/sdk_tests
|
||||||
run: ./build-laconicd-container.sh
|
run: ./build-laconicd-container.sh
|
||||||
|
|
||||||
- name: Build laconic-sdk container
|
- name: Build laconic-sdk container
|
||||||
working-directory: laconic-sdk
|
working-directory: laconic-sdk
|
||||||
run: ./scripts/build-sdk-test-container.sh
|
run: ./scripts/build-sdk-test-container.sh
|
||||||
@ -73,6 +74,7 @@ jobs:
|
|||||||
- name: Start containers
|
- name: Start containers
|
||||||
working-directory: tests/sdk_tests
|
working-directory: tests/sdk_tests
|
||||||
run: docker compose up -d
|
run: docker compose up -d
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
working-directory: tests/sdk_tests
|
working-directory: tests/sdk_tests
|
||||||
run: ./run-tests.sh
|
run: ./run-tests.sh
|
||||||
@ -82,6 +84,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
TEST_AUCTION_ENABLED: true
|
TEST_AUCTION_ENABLED: true
|
||||||
run: docker compose up -d
|
run: docker compose up -d
|
||||||
|
|
||||||
- name: Run auction tests
|
- name: Run auction tests
|
||||||
working-directory: tests/sdk_tests
|
working-directory: tests/sdk_tests
|
||||||
run: ./run-tests.sh test:auctions
|
run: ./run-tests.sh test:auctions
|
||||||
@ -91,53 +94,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
TEST_REGISTRY_EXPIRY: true
|
TEST_REGISTRY_EXPIRY: true
|
||||||
run: docker compose up -d
|
run: docker compose up -d
|
||||||
|
|
||||||
- name: Run nameservice expiry tests
|
- name: Run nameservice expiry tests
|
||||||
working-directory: tests/sdk_tests
|
working-directory: tests/sdk_tests
|
||||||
run: ./run-tests.sh test:nameservice-expiry
|
run: ./run-tests.sh test:nameservice-expiry
|
||||||
|
|
||||||
# integration_tests:
|
|
||||||
# runs-on: ubuntu-latest
|
|
||||||
# steps:
|
|
||||||
# - uses: actions/checkout@v2
|
|
||||||
# - uses: cachix/install-nix-action@v18
|
|
||||||
# - uses: cachix/cachix-action@v12
|
|
||||||
# with:
|
|
||||||
# name: ethermint
|
|
||||||
# signingKey: "${{ secrets.CACHIX_SIGNING_KEY }}"
|
|
||||||
# - uses: technote-space/get-diff-action@v6.1.2
|
|
||||||
# with:
|
|
||||||
# PATTERNS: |
|
|
||||||
# **/**.sol
|
|
||||||
# **/**.go
|
|
||||||
# go.mod
|
|
||||||
# go.sum
|
|
||||||
# tests/integration_tests/**
|
|
||||||
# - name: Run integration tests
|
|
||||||
# run: make run-integration-tests
|
|
||||||
# if: env.GIT_DIFF
|
|
||||||
# - name: 'Tar debug files'
|
|
||||||
# if: failure()
|
|
||||||
# run: tar cfz debug_files.tar.gz -C /tmp/pytest-of-runner .
|
|
||||||
# - uses: actions/upload-artifact@v3
|
|
||||||
# if: failure()
|
|
||||||
# with:
|
|
||||||
# name: debug-files
|
|
||||||
# path: debug_files.tar.gz
|
|
||||||
# if-no-files-found: ignore
|
|
||||||
|
|
||||||
# upload-cache:
|
|
||||||
# if: github.event_name == 'push'
|
|
||||||
# needs: ["integration_tests"]
|
|
||||||
# strategy:
|
|
||||||
# matrix:
|
|
||||||
# os: [macos-latest]
|
|
||||||
# runs-on: ${{ matrix.os }}
|
|
||||||
# steps:
|
|
||||||
# - uses: actions/checkout@v2
|
|
||||||
# - uses: cachix/install-nix-action@v18
|
|
||||||
# - uses: cachix/cachix-action@v12
|
|
||||||
# with:
|
|
||||||
# name: ethermint
|
|
||||||
# signingKey: "${{ secrets.CACHIX_SIGNING_KEY }}"
|
|
||||||
# - name: 'instantiate integration test env'
|
|
||||||
# run: nix-store -r "$(nix-instantiate tests/integration_tests/shell.nix)"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user