Skip to content

Commit

Permalink
setup buildx test
Browse files Browse the repository at this point in the history
  • Loading branch information
qdrvm-ci committed Apr 22, 2024
1 parent 7ec2f09 commit b053bec
Showing 1 changed file with 38 additions and 33 deletions.
71 changes: 38 additions & 33 deletions .github/workflows/autotests-custom.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,37 +10,42 @@ on:

jobs:
autotests:
runs-on: ubuntu-latest
container: soramitsu/kagome-autotests:latest
runs-on: [ actions-runner-controller ]
container: qdrvm/kagome-dev@sha256:2d70246c32418a3dd45c246d3f5c2dd99bdafde145b903271849affe476c4cfc
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 }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
# 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 }}

0 comments on commit b053bec

Please sign in to comment.