Skip to content

.github/workflows/autotests-custom.yaml #8

.github/workflows/autotests-custom.yaml

.github/workflows/autotests-custom.yaml #8

#
# Copyright Quadrivium LLC
# All Rights Reserved
# SPDX-License-Identifier: Apache-2.0
#
name: New Autotests Pipeline
on:
workflow_dispatch:
jobs:
autotests:
strategy:
fail-fast: false
matrix:
options:
- name: "Self-hosted: Minideb: Build Debug"
build-type: "Debug"
name: "${{ matrix.options.name }}"
runs-on: [ actions-runner-controller ]
container: qdrvm/kagome-dev@sha256:2d70246c32418a3dd45c246d3f5c2dd99bdafde145b903271849affe476c4cfc
steps:
- uses: actions/checkout@dc323e67f16fb5f7663d20ff7941f27f5809e9b6
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
# runs-on: ubuntu-latest
# container: soramitsu/kagome-autotests:latest
# steps:
# - name: Set commit status as pending
# uses: myrotvorets/set-commit-status-action@7d7fe9a321fbe56a1339449c19422e95a025c65a
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# status: pending
# context: Autotests
# sha: ${{ github.sha }}
# - name: Run autotests
# working-directory: /kagome-autotests
# run: python3 -m pytest
# shell: sh
# - name: Set commit status as failure
# if: failure()
# uses: myrotvorets/set-commit-status-action@7d7fe9a321fbe56a1339449c19422e95a025c65a
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# status: failure
# context: Autotests
# sha: ${{ github.sha }}
# - name: Set commit status as success
# if: success()
# uses: myrotvorets/set-commit-status-action@7d7fe9a321fbe56a1339449c19422e95a025c65a
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# status: success
# context: Autotests
# sha: ${{ github.sha }}
# env:
# KAGOME_S1: ${{ secrets.KAGOME_S1 }}
# SUBSTRATE_S2: ${{ secrets.SUBSTRATE_S2 }}
# ALICE_ED: ${{ secrets.ALICE_ED }}